Subscribe Bookmark RSS Feed

Is there a way to automatically draw a reference line by default at, say the 3rd quartile everytime I plot the variability chart?

zhouye0

Community Trekker

Joined:

Mar 2, 2016

I have to plot variability charts all the time and want to find out if there is a way to automatically plot a reference line at Q3 and Q1 or some predetermined value everytime I plot the variability chart. Is there a way to do it? I can't seem to find it in preferences.

1 ACCEPTED SOLUTION

Accepted Solutions
Solution

If there is no platform option, then you can resort to scripting if need be.

The following could be (much) improved, but shows the idea (using the quartiles for all the data values):

NamesDefaultToHere(1);

dt = Open("$SAMPLE_DATA/Variability Data/2 Factors Crossed.jmp");

mCol = Column(dt, "Measurement");

vals = mCol << getValues;

q1 = Quantile(0.25, vals);

q3 = Quantile(0.75, vals);

vc = dt << Variability Chart(

Y( mCol ),

X( :Operator, :part# ),

Show Grand Median( 1 ),

Std Dev Chart( 0 ),

SendToReport(

Dispatch(

{"Variability Chart for Measurement"},

"2",

ScaleBox,

{Add Ref Line( q1, "Solid", "Red", "", 1 )}),

Dispatch(

{"Variability Chart for Measurement"},

"2",

ScaleBox,

{Add Ref Line( q3, "Solid", "Red", "", 1 )})

)

);

2 REPLIES
Solution

If there is no platform option, then you can resort to scripting if need be.

The following could be (much) improved, but shows the idea (using the quartiles for all the data values):

NamesDefaultToHere(1);

dt = Open("$SAMPLE_DATA/Variability Data/2 Factors Crossed.jmp");

mCol = Column(dt, "Measurement");

vals = mCol << getValues;

q1 = Quantile(0.25, vals);

q3 = Quantile(0.75, vals);

vc = dt << Variability Chart(

Y( mCol ),

X( :Operator, :part# ),

Show Grand Median( 1 ),

Std Dev Chart( 0 ),

SendToReport(

Dispatch(

{"Variability Chart for Measurement"},

"2",

ScaleBox,

{Add Ref Line( q1, "Solid", "Red", "", 1 )}),

Dispatch(

{"Variability Chart for Measurement"},

"2",

ScaleBox,

{Add Ref Line( q3, "Solid", "Red", "", 1 )})

)

);

zhouye0

Community Trekker

Joined:

Mar 2, 2016

Thanks Ian I'm aware of the potentials of the scripting side of jmp now!