Boxplot with points, showing the points in associated BoxCurrently in a Boxplot using JMP 16.1.0, if more than one result is plotted on y-axis, the boxes can be visulaized with an "offset" or "Align" (Box placement). This function is not given for "points".
I would like to have this functionality to get a better representation of my results and to avoid an intermediate step, e.g. by restacking.

â
Data Exploration and VisualizationRe: Boxplot with points, showing the points in associated BoxThe problem is more visible in this example, see data from group "A":

Re: Boxplot with points, showing the points in associated Boxfor comparison:
for a related issue, there is a workaround available:overlay -> use it again on the x axis.


Re: Boxplot with points, showing the points in associated BoxStill a bug in 18.1.1. Points do not line up with Boxplots or Contour Plots (violin in this example). Our users also would like the points to show in the boxplot. Why the offset?
Even with using the nested option for the x-axis, the points are offset for some of the boxplots.

Without nesting the points are just jittered around the center

Re: Boxplot with points, showing the points in associated Box@Vball247 ,
- use it again on the x -axis.
then you don't need to spread the box plots another time.
-> deactivate via

Names Default to Here(1);
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
Graph Builder(
Size( 595, 397 ),
Show Control Panel( 0 ),
Summary Statistic( "Median" ),
Graph Spacing( 4 ),
Variables(
X( :sex ),
X( :age, Position( 1 ) ),
Y( :height ),
Overlay( :age )
),
Elements(
Points( X( 1 ), X( 2 ), Y, Legend( 8 ) ),
Box Plot( X( 1 ), X( 2 ), Y, Legend( 9 ), Box Placement( "Align" ) )
)
);
maybe more convincing that it works:

Re: Boxplot with points, showing the points in associated BoxFor the original problem, one has the options:
A) with align:


with Offset


Unfortunately, the workaround from above doesn't work.
As an alternative, you can stack the data and use the workaround from above:

dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt << Stack(
columns( :height, :weight )
);
Graph Builder(
Summary Statistic( "Median" ),
Graph Spacing( 4 ),
Variables(
X( :age ),
X( :Label, Position( 1 ) ),
Y( :Data ),
Overlay( :Label )
),
Elements(
Points( X( 1 ), X( 2 ), Y, Legend( 11 ) ),
Box Plot( X( 1 ), X( 2 ), Y, Legend( 12 ), Box Placement( "Align" ) )
)
);
edit: to highlight the trick, I kept the height/weight information on the x axis.
in general a user will prefer to hide this info:


Re: Boxplot with points, showing the points in associated BoxHi Hogi,
your solution is not ok for all cases.
capture 13: with box-plots on offset
capture 14: aligned.
see the graph on the right: you have 2 box-plots on top on each other with align.
best regards

Re: Boxplot with points, showing the points in associated Boxthe universal solution:
- use the split in addition on the x axis
- activate aligned box placement
- maybe: "stack" the data before plotting
did you apply step 3?
can you share a simple example based on a file from the samples directory.
I am sure that we will find a workaround that works for your data as well.
I also agree: it could be easier ...
Re: Boxplot with points, showing the points in associated BoxThanks for the tip on the "align". That worked in our case. Had to do the align for both the boxplot and the contourplot.