Add Fitted Lines to a Graph

Top  Previous  Next

How To... > Work with Graphs > Add Lines and Functions to Graphs > Add Fitted Lines to a Graph

_img51

You can plot two different kinds of fitted lines on a scatter plot: the least-squares line and the median-median line (see What Is a Median-Median Line?).

1.Select the graph.
2.Choose Graph | Least-Squares Line or Graph | Median-Median Line.

The corresponding line appears on the graph, and its equation appears below the plot area. Choose the command again to remove the line.

You can force a least-squares line to go through the origin by choosing Graph | Lock Intercept at Zero.

Note: The least-squares and median-median lines update dynamically as the data change. (Drag a data point to see whether it influences the line.)

When you have a multiattribute scatter plot (more than one attribute on a given axis), you get a line and equation for each.

See also

Show Squares

Make a Residual Plot

Trace on a Function or Fitted Line

Lock Intercept at Zero

Plot a Function on a Graph