I want to draw a line through some of my data points and get the equation in Grapher. Can I?

Yes! Grapher has the ability to create a fit curve, limit it to an X range of data, and get the equation. To do so: 
  1. Click on the Line/Scatter Plot in the Object Manager to select it.
  2. Click Graph Tools | Add to Graph | Fit Curve or Home | Add to Graph | Fit Curve. By default, a linear fit will be applied.
  3. Click on the Linear Fit in the Object Manager to select it. 
  4. In the Property Manager, click on the Plot tab.
  5. In the Fitted Plot section, uncheck the box next to Apply fit to entire plot.
  6. Update the Minimum plot value to fit and Maximum plot value to fit with the x values for the range of data you would like to use. For example, if you want to limit the equation to the red area on this graph, type in 40900 for Minimum plot value to fit and 40945 for the Maximum plot value to fit.

After changing the fit curve Fitted Plot properties, your fit curve will be reduced to the area in red.

  1. To get the equation of the line:
    1. Click the Linear Fit plot.
    2. In the Property Manager, click on the Plot tab. 
    3. In the Statistics section, click the button next to one of the commands.
      • Clicking on the Copy button in the Copy to clipboard field copies the information to the Windows clipboard for pasting into Grapher or another program.
      • Clicking on the Display button in the Display report field opens a text window in Grapher with the fit curve information.
      • Clicking on the Insert button in the Insert into plot document field allows you to click in the plot document window and have the fit curve information displayed as an editable text object.


Updated March 12, 2019

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


Please sign in to leave a comment.