## How to put repeated measurements of SEVERAL GROUPS on the SAME plot?

Community Trekker

Joined:

Jun 23, 2011

I measure the Y value of the three groups.

The measurements were repeated three times (in different conditions).
I want to bring them on ONE plot!

Using "Fit Y by X" we get three (the number of repeated measurements) columns on the graph, and 5 groups points will be mixed (in each measurement).
I would like them (groups) to were located next to each other (using the auto legend to color/mark not enough, because the groups point are mixed and overlapped (in each measurement)).

This is easily done by OVERLAY PLOT, but there will have to encode 1,2,3, ... 15 on the X-axis in a complate graph (and this sequence can not be edited in performe graph in JMP, unfortunately), but I need 1,2,3,4,5, 1,2,3,4, 5, 1,2,3, 4, 5 on the x-axis.

2 REPLIES

Super User

Joined:

Jun 23, 2011

I'm having trouble understanding what your data looks like.  Can you post some sample data?

Super User

Joined:

Jun 23, 2011

You can do it with Graph Builder (JMP8 or 9) or Variability Chart. See script example below

// make sample table

dt=New Table( "Several groups on same plot",

New Column( "Repeat",

Numeric,

Nominal,

Format( "Best", 12 ),

Set Values( [1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3] )

),

New Column( "Item",

Numeric,

Nominal,

Format( "Best", 12 ),

Set Values( [1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5] )

),

New Column( "Data",

Numeric,

Continuous,

Format( "Best", 12 ),

Set Values( [15, 13, 1, 12, 2, 4, 14, 14, 9, 2, 4, 1, 7, 2, 14] )

)

);

// Graph builder

dt<<Graph Builder(

Variables( X( :Item ), Y( :Data ), Group X( :Repeat ) ),

Elements( Points( X, Y, Legend( 1 ) ) )

);

//Variability chart

Variability Chart(

Y( :Data ),

X( :Repeat, :Item ),

Std Dev Chart( 0 )

);