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².
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.
| Regression math | Exact OLS slope (m), intercept (b), Pearson r, and R² |
|---|---|
| Axis scaling | Wilkinson/Heckbert nice tick intervals for both X and Y axes |
| Input cleanup | Automatically strips currency ($), commas, and % symbols |
| Export formats | Vector SVG for LaTeX/papers and 2x Retina PNG for slides |
| Privacy | 100% client-side calculation with zero data upload |
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².
Yes. Uncheck the Show OLS Trendline toggle in the left panel to render a clean raw scatter plot.
The smart parser strips currency symbols, commas, percent signs, and Markdown formatting automatically before plotting.
Yes. The downloaded SVG uses clean vector primitives and readable axis typography that scale sharply at any print DPI.