Scatter Plot Maker

Paste two numeric columns to plot X-Y coordinates with an automatic Ordinary Least Squares (OLS) trendline, linear equation, Pearson r, and R² badge — 100% in your browser.

Click any text on canvas to edit directly:
REGRESSION ANALYSIS Ad Spend vs Monthly Net Revenue Automatic Ordinary Least Squares (OLS) trendline and R² fit Linear fit: y = 2.959x + 0.855 · R² = 0.9986 · r = 0.999 · n = 12 0 10 20 30 0 2 4 6 8 10 Ad Spend ($k) Revenue ($k) Source: Campaign Sample (n = 12) tablefig.com
100% local · Instant SVG/PNG

Replace your current data?

You have modified data or titles in this workspace. Loading the sample will replace your current inputs.

How to Use Scatter Plot Maker

  1. Paste two numeric columns (X first, Y second) from CSV, Excel, or Markdown.
  2. Review the auto-computed linear equation (y = mx + b) and R² correlation badge above the plot.
  3. Toggle the dashed regression trendline, pick your theme/aspect ratio, and export PNG or SVG.

Technical Specifications

Regression mathExact OLS slope (m), intercept (b), Pearson r, and R²
Axis scalingWilkinson/Heckbert nice tick intervals for both X and Y axes
Input cleanupAutomatically strips currency ($), commas, and % symbols
Export formatsVector SVG for LaTeX/papers and 2x Retina PNG for slides
Privacy100% client-side calculation with zero data upload

Frequently Asked Questions

How is the trendline and R² calculated?

TableFig runs standard Ordinary Least Squares (OLS) linear regression on all valid numeric (X, Y) pairs in your browser, computing slope, intercept, Pearson correlation r, and coefficient of determination R².

Can I turn off the regression line?

Yes. Uncheck the Show OLS Trendline toggle in the left panel to render a clean raw scatter plot.

What if my data has dollar signs or thousands commas?

The smart parser strips currency symbols, commas, percent signs, and Markdown formatting automatically before plotting.

Is the SVG export suitable for academic papers and LaTeX?

Yes. The downloaded SVG uses clean vector primitives and readable axis typography that scale sharply at any print DPI.