Scatter plot example

Scatter Plot with Trend Line & Regression Example

This example adds a fitted linear trend line to the point cloud and displays the regression equation, R², and Pearson r. The line summarizes the best linear fit; the points remain the underlying observations.

Email sends vs signupsLinear trend line with regression statistics0501001502000204060Y · SignupsX · Email sends (k)y = 2.787x + 16.87R² = 0.999Pearson r = 1Source: Sample data

Example data

This is the data used by the live preview. Open the example in Vizvero to replace any cell, add series when the chart supports them, change chart settings, and export the result.

Email sends (k)Signups
531
1045
1558
2074
2586
3099
35116
40126
45143
50157

How to structure the data

  • 01Enter two numeric columns with at least two distinct X values.
  • 02Choose Linear under Trend line, then turn the equation, R², or Pearson r on or off independently.
  • 03Use the fitted line as a descriptive summary; inspect residual spread and context before making predictive or causal claims.

What this example shows

Add a linear trend line with a regression equation, R², and Pearson r to paired XY observations.

Trend line, regression line, and line of best fit

For a linear scatter plot, these phrases commonly refer to a straight fitted line that minimizes squared vertical residuals. Vizvero calculates an ordinary least-squares linear regression line.

R² and Pearson r

R² summarizes how much variation in Y is explained by the fitted linear model in this sample. Pearson r summarizes the direction and strength of linear association between X and Y.

More scatter plot examples

Related scatter plot examples

Browse all examples

Make this scatter plot your own

Open the exact example in the matching maker, replace the sample data, then customize the layout, design, animation, and export format.

Edit this example
Scatter Plot with Trend Line & Regression Example | Vizvero