cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
JMP is taking Discovery online, April 16 and 18. Register today and join us for interactive sessions featuring popular presentation topics, networking, and discussions with the experts.
Choose Language Hide Translation Bar
gandi2223
Level III

Bivariate plot: move one group to top

In a bivariate plot with grouped data, is it possible to have one group plotted on top of the other? From what I've seen so far, the order in which the markers are drawn is random, see the attachment (some blue markers are drawn underneath, some are drawn above the red ones.)

 

It would be useful to designate which group goes on top, in cases where the first group consists of significantly more datapoints than the second one, hence the second group is "lost" underneath.

 

Capture-8.PNG

1 ACCEPTED SOLUTION

Accepted Solutions
julian
Community Manager Community Manager

Re: Bivariate plot: move one group to top

Hi gandi2223,

Hmm, I can see what you mean. In most platforms plots you can change the layer ordering by right clicking the plot, then select "Customize." The ordering of the elements on the left indicate the order in which the layers are drawn. I can't tell exactly how you have your data set up for the output you attached, but I'm guessing you had rows colored by a column, is that correct? In that instance there aren't actually separate layers being drawn so there isn't the option to select which layer is drawn first (at least I haven't been able to find such an option). I do have a few suggestions though:

1. If you want to continue to plot these data in Fit Y by X, right click the plot and select "Transparency" and then try a value around 0.5. I bet with some transparency you will be able to make out the points better, and you won't have as much of a problem with points being occluded.

2. Use Graph > Graph Builder. If you recreate your bivariate plot, and use whatever variable you were coloring rows by in the "Overlay" role, you will have separate layers being drawn for each group. With points in separate layers you will have direct control over which group is in front. Right-click the plot, the select "Customize." Once there you can move the layers on the left to put which ever group in front that you like (the layers are listed in the order they are being drawn, so move a layer down to the bottom if you want it to be on top, i.e. the last layer drawn).

I hope this helps!

julian

View solution in original post

6 REPLIES 6
julian
Community Manager Community Manager

Re: Bivariate plot: move one group to top

Hi gandi2223,

Hmm, I can see what you mean. In most platforms plots you can change the layer ordering by right clicking the plot, then select "Customize." The ordering of the elements on the left indicate the order in which the layers are drawn. I can't tell exactly how you have your data set up for the output you attached, but I'm guessing you had rows colored by a column, is that correct? In that instance there aren't actually separate layers being drawn so there isn't the option to select which layer is drawn first (at least I haven't been able to find such an option). I do have a few suggestions though:

1. If you want to continue to plot these data in Fit Y by X, right click the plot and select "Transparency" and then try a value around 0.5. I bet with some transparency you will be able to make out the points better, and you won't have as much of a problem with points being occluded.

2. Use Graph > Graph Builder. If you recreate your bivariate plot, and use whatever variable you were coloring rows by in the "Overlay" role, you will have separate layers being drawn for each group. With points in separate layers you will have direct control over which group is in front. Right-click the plot, the select "Customize." Once there you can move the layers on the left to put which ever group in front that you like (the layers are listed in the order they are being drawn, so move a layer down to the bottom if you want it to be on top, i.e. the last layer drawn).

I hope this helps!

julian

Re: Bivariate plot: move one group to top

in many sense JMP is pretty much clueless and non-intutive in obvious situations.

txnelson
Super User

Re: Bivariate plot: move one group to top

Please add your suggested solution to the JMP Wish List for evaluation for inclusion in a future version of JMP.

Jim
julian
Community Manager Community Manager

Re: Bivariate plot: move one group to top

I hear you, @ram_asra_gmail_ ! I suppose like any extremely complex and flexible piece of software certain things will end up working in sometimes less-than-intuitive ways. What I love about our developers is that they listen to these pains, and consistently make things easy that used to be hard. In the case of this post from a few years ago, were I to answer it again I would suggest using a Jitter option in Graph Builder (now the default). What was once a problem (overlapping points hiding the distribution) is not only better, but beautiful!

jitter.png

 

Re: Bivariate plot: move one group to top

Hi Julian, Jitter option may be good for small set of data point. if set is small you may not need jitter anyway. 

2nd can you post about jitter in bivariate instead of oneway?

Thanks

julian
Community Manager Community Manager

Re: Bivariate plot: move one group to top

Quite true, when there aren't many points usually these issues don't arise. With a scatterplot (bivariate) I wouldn't suggest using jitter since the locations on both Y and X convey numeric information. When one variable is categorical we have the flexibility to move points within that group, which is why jittering can work well without misleading about the values for a certain point. That said, there is the option to jitter points in Graph Builder, even when both axes are quantitative.