01 / Data
Paste and go
Copy two or three columns from Excel, Google Sheets or Numbers and paste them. Groups and extra series work too.
Free tool
Paste two columns of numbers from a spreadsheet, or type an x and a y on each line, and the scatter plot draws itself as you type. Add a third column to split the points into groups by colour. Draw a straight or curved trend line and read its equation and R squared on the chart and in a table. Set axis titles, point size, grid, log axes and your own axis range, then save a sharp PNG, an SVG or a PDF. Your numbers stay in your browser.
Paste columns straight from a spreadsheet, or separate numbers with a tab, comma, semicolon or space. A text column after y names the group. A first row of names is used for the axis titles.
Trend line
Axes
Points and colours
The plot is drawn in your browser. Your numbers are never uploaded; they are kept in this browser for next time.
What you get
01 / Data
Copy two or three columns from Excel, Google Sheets or Numbers and paste them. Groups and extra series work too.
02 / Fit
A least squares line or a curve of degree 2 or 3, with its equation, R² and, for a line, Pearson r.
03 / Export
A sharp PNG for slides, an SVG to edit in a design app, or a PDF to print.
Guide
A scatter plot maker draws one dot for every pair of numbers, with the first number across and the second one up. The shape of the cloud shows whether the two things move together. This one draws the plot as you type, can split the dots into groups by colour, and fits a trend line with its equation and R squared, so you can say how strong the link is as well as show it.
3 61. A tab, comma, semicolon or space between them all work, so you can paste straight from a spreadsheet. You can also click Open a CSV file, or drop a file on the box.The straight line is the least squares line: the one that makes the sum of the squared vertical gaps between the dots and the line as small as it can be. Its slope is the sum of (x minus the mean of x) times (y minus the mean of y), divided by the sum of (x minus the mean of x) squared. The intercept is the mean of y minus the slope times the mean of x.
Take the example that loads with the tool: hours studied from 1 to 10 against a test score. The mean of x is 5.5 and the mean of y is 68.8. The slope works out to 3.903 and the intercept to 47.33, so the line is y = 3.903x + 47.33. Each extra hour goes with about 3.9 more points. The curves of degree 2 and 3 are fitted the same way, with an x squared term, and an x cubed term as well.
R² is the share of the ups and downs in y that the trend line accounts for. It is 1 minus the leftover squared gap divided by the total squared gap around the mean of y. An R² of 0.9685 on the example means the line accounts for about 97% of the variation in the scores. For a straight line, r is the square root of R², with the sign of the slope: 0.9841 here.
| Fit on the study example | Equation | R² |
|---|---|---|
| Straight line | y = 3.903x + 47.33 | 0.9685 |
| Curve, degree 2 | y = 0.09848x² + 2.82x + 49.5 | 0.9725 |
| Curve, degree 3 | y = 0.02564x³ - 0.3246x² + 4.771x + 47.3 | 0.9741 |
A higher degree always fits the same points at least as well, so R² can only go up. Here it barely does, so the straight line is the better description. Use a curve when the dots visibly bend, as in the A curve example, where a line gives an R² of 0.9373 and degree 2 gives 0.9999.
With two or more groups, One trend line for each group fits each colour on its own. Untick it to fit all the points together. In the Two groups example, groups A and B each have a tight line (R² of 0.9925 and 0.9945), but fitted together the R² drops to 0.7231, because the groups sit at different heights. That is a good reason to look at the groups before trusting one overall line.
A log scale puts equal multiples at equal distances: 1, 10, 100 are evenly spaced. It suits data that spans many orders of size. Zero and negative numbers cannot be drawn on a log axis, so the tool leaves those points out and tells you how many. The trend line is fitted to the numbers as typed and then drawn on the log axis, so it bends there.
For counts and shares of a whole, try the pie chart maker or the bar graph maker. To plot a formula instead of data, use the graphing calculator.
Questions
Select the two columns, copy them and paste into the Data box. The first row can hold names. A third column of text makes groups.
Pick Straight line, Curve, degree 2 or Curve, degree 3 under Fit. The line is dashed, and the equation and R² show on the plot.
It runs from 0 to 1. Closer to 1 means the trend line follows the dots more closely. What counts as good depends on the field, so judge it next to the plot, not alone.
Add a third column with the group name on each row, such as A or B. Rows with the same name share a colour.
Yes. Give a first row of names and put x in the first column, then a y column for each series. Each series becomes a group.
A log axis cannot show zero or negative numbers. The note under the plot counts the points that were left out.
Yes. Type values in X from, X to, Y from and Y to. Leave them empty for an automatic range with a little space around the points.
No. The plot and the fit are worked out in your browser. The numbers are kept on this device only so they are there next time, and you can click Clear to remove them.
A few thousand draw smoothly. A CSV file opens up to its first 5,000 rows.