Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

- JMP User Community
- :
- Discussions
- :
- Graph Builder: Add 1:1 Line

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

Highlighted

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Jul 11, 2017 11:51 AM
(14154 views)

Does anyone know how to add a 1:1 line to Graph Builder? In the platform Fit Y by X there was a way to both fit the displayed data and show a 1:1 line. I can't find how to do that in GB. Thanks.

2 ACCEPTED SOLUTIONS

Accepted Solutions

Highlighted

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

- Right-click on the canvas and select Customize.
- Click Add.
- Click Template and select Y Function.
- Change the function arguments to ( x, x ).
- Click OK.

Learn it once, use it forever!

Highlighted

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Thank you for the answer. I have a question on how to label that line in the graph. How do you do it?

How to change the properties of the lines i.e. make it thicker, make it dotted, etc.?

Thank you.

8 REPLIES 8

Highlighted

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

- Right-click on the canvas and select Customize.
- Click Add.
- Click Template and select Y Function.
- Change the function arguments to ( x, x ).
- Click OK.

Learn it once, use it forever!

Highlighted
##

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Re: Graph Builder: Add 1:1 Line

Dang Mark,

That's a sweet solution. I've never drilled around that part of GB before and I now see lots of other capabilities I can add to my graphs. Thanks for sharing the tip.

Highlighted
##

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Re: Graph Builder: Add 1:1 Line

Created:
Jul 12, 2017 9:44 AM
| Last Modified: Jul 12, 2017 9:46 AM
(14112 views)
| Posted in reply to message from terapin 07-12-2017

In fact, the templates are just a convenience for new users. You can enter any graphics script you want and it will be evaluated by the frame box that is used for the canvas in Graph Builder.

The Customize command works in all of the frame box objects that are used to make plots in JMP...

Learn it once, use it forever!

Highlighted
##

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Re: Graph Builder: Add 1:1 Line

Can you add a reference line like this in graph builder based on an equation? I have tried this but get an error. Y Function(y=350E^(-0.01*x));

Highlighted
##

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Re: Graph Builder: Add 1:1 Line

You are missing the second argument that indicates the independent variable (x) in the formula. The first argument should be the valid expression for the function computation, not an equation.

It should look like this:

`Y Function( 350*Exp(-0.01*x), x );`

Learn it once, use it forever!

Highlighted

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Thank you for the answer. I have a question on how to label that line in the graph. How do you do it?

How to change the properties of the lines i.e. make it thicker, make it dotted, etc.?

Thank you.

Highlighted
##

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Re: Graph Builder: Add 1:1 Line

You should look in the Scripting Index under the Graphics() category. There you will find Text(), Pen Size() etc.

Help==>Scripting Index

There is also examples and documentation in the Scripting Guide

Help==>JMP Documentation Library==>Scripting Guide

Scripting Graphs

Jim

Highlighted
##

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Re: Graph Builder: Add 1:1 Line

You can interactively change some of these characteristics by right-clicking in the plot frame and select **Customize**. The elements are listed on the left. For example, select a Line element and then the properties, for example thickness and color, appear on the right side where they can be changed.

Learn it once, use it forever!

Article Labels

There are no labels assigned to this post.