Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

Highlighted

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Mar 2, 2016 9:07 AM
(7004 views)

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

Highlighted

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

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 2

Highlighted

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

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** **)})**

**)**

**)**;

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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

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

Article Labels

There are no labels assigned to this post.