Subscribe Bookmark RSS Feed

How do you get individual data points to show on top of a box plot graph?

cparlett

Community Trekker

Joined:

Jan 6, 2015

How do you get non outlier data points to show on a box plot graph?

1 ACCEPTED SOLUTION

Accepted Solutions
Solution

Hi cparlett,

You can do this a few different ways. After generating the box plot in graph builder you can right click the graph, select add, then select points. Alternatively, you can add the points on top of the box plot by dragging the icon with points (in the pallete above the graph) on top of the graph. Dragging a visual (rather than clicking it) adds the visualization to the current plot (rather than replacing it).

I hope this helps,

julian

3 REPLIES
Solution

Hi cparlett,

You can do this a few different ways. After generating the box plot in graph builder you can right click the graph, select add, then select points. Alternatively, you can add the points on top of the box plot by dragging the icon with points (in the pallete above the graph) on top of the graph. Dragging a visual (rather than clicking it) adds the visualization to the current plot (rather than replacing it).

I hope this helps,

julian

Kerouwhack

Occasional Contributor

Joined:

Jul 20, 2017

Suppose I'm using a box graph plot. On the X axis I have three groups: 1, 2, 3. But within each group are 3 sub-groups: a,b,c. When I add points, the points from subgroups a,b,c hover over the center of the group axis title without aliging on top of the box plot for subgroup a,b,c. How do I get the points to be in the correct sub group bin?

ruthhummel

Staff

Joined:

Mar 17, 2016

Here is one way to do this -- there are definitely other possible variations on this.

 

What I am showing here is also covered in an example in the section “Create Nested Axes for Character Variables” in the JMP Help (https://support.sas.com/documentation/onlinedoc/jmp/13.1/EssentialGraphing.pdf) -- you can see a screenshot of the extra X-axis drop zone in Figure 3.16.

 

The trick is that there is a hidden drop zone in the X-axis that lets you add a second categorization variable on top of or below the variable that you already have in the x-axis. Just drag that second variable over the variable that is already in the x-axis and then move your mouse slightly up – you should see a smaller blue drop zone appear above the main x-axis drop zone, as well as a small zone appearing below the main zone.

Here I have my continuous Y in the Y zone, and my categorical X in the X zone:

Screen Shot 2017-09-12 at 5.30.07 AM.png

Then I add on the boxplots:

Screen Shot 2017-09-12 at 5.30.31 AM.png

And then I drag on the second categorical X variable into that zone that appears when I hover over and then slightly above the X drop zone:

Screen Shot 2017-09-12 at 5.42.15 AM.png

(Sorry about the “Where(IndividualWithinTrt = 1, 2, 3)” extra stuff – the example I had on hand has 13 groups within each of the four treatment groups, and that just looks way too messy.)

 

Just for extra clarity, I’ve now colored the four main treatment groups. You can see that each main group has three subgroups, which each have three points in them.

Screen Shot 2017-09-12 at 5.42.46 AM.png