How can I calculate the slope of my data distribution in Grapher?

Grapher allows a fit curve to be added to any line/scatter plot data. A linear fit curve can be used to calculate the slope of the data distribution.


For instance, suppose your scatter plot looks like:

The data appears to follow a general linear trend.


The following steps can be used to add a linear fit curve and determine the slope of the line.

  1. Click on the Line/Scatter Plot in the Object Manager to select it.
  2. In the Property Manager, click on the Plot tab.
  3. Click the Add/Edit button next to the Fit curve command.
  4. In the Fits dialog, select Linear, Y = B * X + A from the Available Fits list.
  5. Click the Add button to add the fit to the Display Following Fits list.
  6. Click OK to close the dialog and add the fit curve to the graph.
  7. Click on the Fit 1: Linear plot in the Object Manager to select it.
  8. In the Property Manager, click on the Plot tab.
  9. Click the Insert button next to the Insert into plot document option.
  10. Click on the screen where you want the text to appear. The equation is in the form Y = M*X+B where M is the slope the line.

The statistics for the linear fit curve display the slope of the equation.


Updated January 12, 2018

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request


Please sign in to leave a comment.