cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP will suspend normal business operations for our Winter Holiday beginning on Wednesday, Dec. 24, 2025, at 5:00 p.m. ET (2:00 p.m. ET for JMP Accounts Receivable).
    Regular business hours will resume at 9:00 a.m. EST on Friday, Jan. 2, 2026.
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
ptkguy
Level II

Reference lines with slope

JMP 9.0.2 on Windows XP

I'd like to add a reference line to a scatterplot (using Graph Builder), but I don't want the vertical or horizontal lines that are possible through the axis settings.  I could use a dummy column with the appropriate values, but I'm hoping there is a more elegant solution...

1 ACCEPTED SOLUTION

Accepted Solutions
Jeff_Perkinson
Community Manager Community Manager

Reference lines with slope

You can add a Graphics Script to the graph and use the "Y Function()" function.

Just right-click on the graph and chose "Customize". In the Customize Graph dialog click the + button to add a script.

Then, in the Templates drop down menu, choose Y Function.

Then you can put the formula for your line in the Y Function template and get a line.

Jeff

-Jeff

View solution in original post

1 REPLY 1
Jeff_Perkinson
Community Manager Community Manager

Reference lines with slope

You can add a Graphics Script to the graph and use the "Y Function()" function.

Just right-click on the graph and chose "Customize". In the Customize Graph dialog click the + button to add a script.

Then, in the Templates drop down menu, choose Y Function.

Then you can put the formula for your line in the Y Function template and get a line.

Jeff

-Jeff

Recommended Articles