cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Choose Language Hide Translation Bar
scottahindle
Level IV

How to add graph label for only one plotted y-variable?

In attached JMP table I create a simple graph plotting:

- the column "Label" on the x-axis

- the columns "Std Dev(Size of error)" and "Mean(Absolute error)" on the y-axis

(the graph is also included in the attached data table)

Using the last column, MAE, I would like to label only the points from the column "Mean(Absolute error)". 

I have successfully labelled graphs in the past as below:

dtSummary:MAE << label(1);

dtSummary << Select All Rows << label(1) << clear select;

Trouble is this puts the same label for both variables plotted on the y-axis but I want for only one, i.e. the column "Mean(Absolute error)".

Does anyone know how to do this? Thanks in advance, Scott.

 

 

1 REPLY 1

Re: How to add graph label for only one plotted y-variable?

The label property applies row-wise, and because each row appears twice in the graph each line will get labeled. The answer is to get Std Dev(Size of Error) and Mean(Absolute Error) values onto separate rows. Try stacking the data table (Tables > Stack) and then putting the resulting label column into the Overlay role. Then select just the rows corresponding to the Mean(Absolute Error) values and turn their labels on. See the example table attached; I believe it gets what you're looking for:

Ross_Metusalem_0-1671026647630.png

 

Ross Metusalem
JMP Academic Ambassador