When a graph is created (in Graph Builder) with multiple pages, using one of the variables as a page parameter, the legend is only shown for the first page.
How to repeat the legend for all pages?
Any suggestion much appreciated!
Hi @Piet_Hoogkamer,
The trick here is to use the Dialog option in Graph Builder, then use the By role for your Label column, rather than Page. Graph Builder will then repeat the legend for each graph.
I hope this helps!
I am not aware of how to do that in Graph Builder. What type of graph are you building? If it is a scatter plot, you could use
Graph==>Overlay Plot
Specify your X and Y variables, and then the Page variable, put in the By selection box.
Once it is run, you can hold down the CNTL key and right mouse click, and select Row Legend. The select your color variable, and the legend will be shown for each graph.
Thanks Jim, this is helpful!
Being addicted to the graph builder, I rarely look at the other options, so lesson learned (at least for the scatter plot).
However, I still would like to see the same for the graph builder, as there are clearly differences in options.
Using 'Overlay plot' and 'Graph Builder', with my data looks as below.
The graph builder plots are for me much nicer, with a more clear relation of the points to the sample class (with some optional jitter).
Best, Piet.
Overlay Plot
Graph Builder Plot
I agree with your statement, and I suggest that you send an enhancement request to
support@jmp.com
Hi @Piet_Hoogkamer,
The trick here is to use the Dialog option in Graph Builder, then use the By role for your Label column, rather than Page. Graph Builder will then repeat the legend for each graph.
I hope this helps!
Hi Julian,
Many thanks!
This indeed solves this problem (and open a door to new options!).
Best regards,
Piet
Hi Julian,
Three years later, we have JMP 15 and this solution doesnt work. It creates for ech "by" category an extra page. Do you know, how it works with JMP 15.
Hi @lena
Can you explain in more detail what functionality you are missing in JMP 15 that you had before? I tried this on my side and I can produce the same separate graphs with separate legends. There is the "Page" role that you won't want to use, but as far as I can tell, "By" works as it did before. I'm sure I'm missing something, so let me know what it is and we can figure out how to do it in JMP 15!
Hi Julian
i used the dialog builder wrong. thats why it didnt work with the labels. Now it works. Thanks for fast reply.