Scatter Plot Maker
Plot two variables, add a trend line and see the correlation.
How to use the Scatter Plot Maker
- 1Paste X and Y values, with an optional group column.
- 2Add a trend line and show R².
- 3Download the plot as SVG or PNG.
About Scatter Plot Maker
The Scatter Plot Maker shows how two numeric variables relate. Each row of the table is one point: choose which columns go on the X and Y axes, color the points by a group column such as region or category, and size them by a third numeric column to turn the plot into a bubble chart.
A dashed least-squares trend line can be added, with its coefficient of determination, R², printed in the corner. Logarithmic scales on either axis help when values span several orders of magnitude, such as income, population or reaction rates; on a log axis the straight-line fit appears as a curve. Point size, palette, gridlines, axis titles and limits, and number formats are all adjustable.
Students, researchers and analysts use a scatter plot maker to check for correlation, spot outliers and clusters, and present results from experiments and surveys, for example ad spend against sales, height against weight or study hours against test scores. Export the XY plot as SVG or high-resolution PNG, or copy it to the clipboard.
Frequently asked questions
What does R² mean on a trend line?
R², the coefficient of determination, is the share of the variation in Y that the straight-line fit explains. It runs from 0 (no linear relationship) to 1 (all points on the line). For a simple linear fit it equals the square of Pearson's correlation coefficient r.
Does a strong correlation prove that one variable causes the other?
No. Correlation only shows that two variables move together. A third factor, coincidence or reverse causation can explain the same pattern, so causal claims need an experiment or other evidence.
How is the trend line calculated?
It is an ordinary least-squares regression line, y = a + bx, which minimizes the sum of the squared vertical distances between the points and the line. The fit uses the original values even when an axis is shown on a log scale.
When should I use a logarithmic scale?
Use a log axis when values range over several orders of magnitude or grow exponentially; equal distances on the axis then stand for equal ratios. A log scale can only show positive values, so points with zero or negative values on that axis are left out.
More in Charts & Diagrams
Create bar, line, area, pie and scatter charts from your data.
Make grouped, stacked and horizontal bar graphs in seconds.
Plot trends over time as line or area graphs.