Subscribe Bookmark RSS Feed

Reference lines with slope

ptkguy

Community Trekker

Joined:

Jun 23, 2011

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

Joined:

Jun 23, 2011

Solution

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
1 REPLY
Jeff_Perkinson

Community Manager

Joined:

Jun 23, 2011

Solution

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