Free graph maker & data converters

Scatter Plot Maker

Plot X–Y data as a scatter plot and add a line of best fit with its equation and R². Ideal for correlation, calibration and lab data.

Your data
7 rows × 3 columns · tab-separated
Graph
0246810120.00.10.20.30.40.50.60.7Concentration (mg L-1)AbsorbanceAbsorbancey = 0.04989x + 0.002071, R2 = 0.9998
Hover over a point to read its value.
Statistics
SeriesnMeanMedianSDSEMinMax
Absorbance70.301430.2970.215580.0814830.0020.602
SeriesModelEquationParametersR²
Absorbancelineary = 0.04989x + 0.002071b = 0.0020714, m = 0.0498930.99980
Chart options
Y seriesError bars (±)

Units: m^2 → m², H_2O → H₂O, 10^{-3} → 10⁻³, \mu → μ, \deg → °

How to use the Scatter Plot Maker

  1. Paste your X and Y columns (first row = headers) or upload a CSV/Excel file.
  2. Keep chart type on "Scatter".
  3. Under Trendline choose "Linear" to get the line of best fit, equation and R².
  4. Download the scatter plot as SVG, PDF or PNG.

Scatter plot with line of best fit

A scatter plot shows each observation as a single point, so you can see whether two variables are related. A line of best fit (least-squares regression line) summarises that relationship. Plotiq calculates the slope, intercept and coefficient of determination (R²) and prints them in the legend, so you can quote them in a report.

R² tells you how much of the variation in Y is explained by the fit. Values close to 1 mean the points lie close to the line. For a full list of regression statistics, check the results table under the chart.

Non-linear trendlines

Not every relationship is a straight line. Choose a 2nd or 3rd order polynomial for curved data, exponential for growth and decay, logarithmic for data that rises quickly then levels off, or power for allometric and scaling laws. Exponential and power fits ignore points with zero or negative Y, because those models cannot pass through them.

Comparing several groups

Add more Y columns to show several groups on the same axes. Each group gets its own marker shape (circle, square, triangle, diamond) so the plot stays readable in grayscale. A separate trendline is fitted for each group.

Worked example: a calibration curve from a CSV

A spectrophotometer export with concentration and absorbance columns is a classic use. Plotted with a linear trendline, the sample data gives:

ResultValueMeaning
Slope (m)0.04989Absorbance per mg L⁻¹
Intercept (b)0.00207Should be close to zero for a blank-corrected series
R²0.9998Points lie almost exactly on the line

To find an unknown concentration: (absorbance − b) / m.

Getting the right two columns from a wide CSV

Exports often contain dozens of columns: timestamps, IDs, status flags and several measurements. Pick the X column from the dropdown, then choose only the Y columns you want under Columns. Text columns can’t be plotted as Y and are skipped automatically. If the file is very wide, the CSV column extractor can save a smaller copy with just the columns you need.

Columns named SD, SE or Error are paired with the measurement column before them and drawn as error bars. Change or remove the pairing in the Columns tab.

Frequently asked questions

How do I add a line of best fit to a scatter plot?
Choose "Linear" under Trendline. The fitted line is drawn dashed, and the equation y = mx + b with R² appears in the legend.
What is a good R² value?
It depends on the field. Calibration curves in analytical chemistry usually need R² ≥ 0.995. In biology or social sciences much lower values can still be meaningful. Always look at the plot as well as the number.
Can I plot a scatter graph from an Excel file?
Yes. Upload .xlsx or .xls and the first sheet is loaded. You can also copy cells from Excel and paste them.
Is my data private?
No. Your data never leaves your browser. Plotiq parses and plots files locally with JavaScript, so nothing is uploaded to a server.
How do I get the slope and R² from my CSV data?
Choose a Linear trendline. The equation and R² appear in the legend, and the statistics table under the chart lists the slope, intercept and R² so you can copy them.

Last updated: · by the Plotiq Editorial Team · Read our guides