cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Browse apps to extend the software in the new JMP Marketplace
Choose Language Hide Translation Bar
WebDesignesCrow
Super User

How to make UCL appear in Histogram?

Hi experts,

I was demonstrating the JMP functionality to my new colleague.

And suddenly hit with below scenario;

If I define the Spec Limit = the line will appear in histogram automatically.

But why, when I define the Control Limit, the line doesn't appear automatically?

I really don't like to go through the scripting details for basic information like control limits to my new colleague.

Is there any preference that I can define rather than insert new reference line manually?

I'm using JMP 17.0

WebDesignesCrow_0-1698281412166.png

WebDesignesCrow_5-1698281738647.png

 

WebDesignesCrow_3-1698281531373.png

WebDesignesCrow_6-1698281803983.png

 

Thanks in advance!

 

 

2 ACCEPTED SOLUTIONS

Accepted Solutions
txnelson
Super User

Re: How to make UCL appear in Histogram?

As far as I know, only Spec Limits and Response Limits have the option to automatically added to graphic output.

Jim

View solution in original post

hogi
Level XII

Re: How to make UCL appear in Histogram?

Temporal aspects are clearly lost when the temporal structure is neglected with a box plot.

But why is it not possible to generate a plot like this directly via the Distributions platform?

hogi_0-1698331031715.png

 

dt = Open( "$SAMPLE_DATA/Quality Control/Phase Historical Data.jmp" );
dt:Site << Data Type( Character );
myControlChart = dt << run  script("Control Chart Builder");
myLimits = myControlChart <<Save Limits("in New Table");
dtsplit = myLimits  << Split(
	Split By( :_LimitsKey ),
	Split( :Force ),
	Group( :Site )
);
dt << Update(
	With( dtsplit ),
	Match Columns( :Site = :Site ),
	Add Columns from Update Table( :_LCL, :_UCL ),
	Replace Columns in Main Table( None )
);
Graph Builder(
	Variables(
		X( :Site ),
		Y( :Force ),
		Y( :_LCL, Position( 1 ) ),
		Y( :_UCL, Position( 1 ) )
	),
	Elements(
		Histogram( X, Y( 1 ), Legend( 14 ) ),
		Line Of Fit( X, Y( 2 ), Y( 3 ), Legend( 15 ) )
	)
)

View solution in original post

6 REPLIES 6
txnelson
Super User

Re: How to make UCL appear in Histogram?

As far as I know, only Spec Limits and Response Limits have the option to automatically added to graphic output.

Jim
statman
Super User

Re: How to make UCL appear in Histogram?

Control limits should only be used in relation to some rational series such as time.  There is no series in a histogram so there should be no control limits.

"All models are wrong, some are useful" G.E.P. Box
hogi
Level XII

Re: How to make UCL appear in Histogram?

Temporal aspects are clearly lost when the temporal structure is neglected with a box plot.

But why is it not possible to generate a plot like this directly via the Distributions platform?

hogi_0-1698331031715.png

 

dt = Open( "$SAMPLE_DATA/Quality Control/Phase Historical Data.jmp" );
dt:Site << Data Type( Character );
myControlChart = dt << run  script("Control Chart Builder");
myLimits = myControlChart <<Save Limits("in New Table");
dtsplit = myLimits  << Split(
	Split By( :_LimitsKey ),
	Split( :Force ),
	Group( :Site )
);
dt << Update(
	With( dtsplit ),
	Match Columns( :Site = :Site ),
	Add Columns from Update Table( :_LCL, :_UCL ),
	Replace Columns in Main Table( None )
);
Graph Builder(
	Variables(
		X( :Site ),
		Y( :Force ),
		Y( :_LCL, Position( 1 ) ),
		Y( :_UCL, Position( 1 ) )
	),
	Elements(
		Histogram( X, Y( 1 ), Legend( 14 ) ),
		Line Of Fit( X, Y( 2 ), Y( 3 ), Legend( 15 ) )
	)
)
statman
Super User

Re: How to make UCL appear in Histogram?

Control chart method, as invented by Shewhart, perform 2 functions:

  • Assessing stability of the within subgroup sources/components of variation (this can only be done in a time series R, MR charts), and
  • Comparing the within sources of variation to the between (X-bar charts).  The control limits on the X-bar chart are a function of the within subgroup sources (A2*R-bar).

Putting control limits on distributions completely misses the use of the control chart method and should not be done.  Of course, you can put any limits you want on the chart, they just aren't control limits.

"All models are wrong, some are useful" G.E.P. Box
WebDesignesCrow
Super User

Re: How to make UCL appear in Histogram?

I like this visualization. Thanks @hogi 

You know, common issues that I've seen in my organization.

They follow statistics to calculate Control Limit & propose control limits that is outside of spec limit (customer requirement) which I think is ridiculous.

So, I just want to visualize the comparison (easy to explain)

hogi
Level XII

Re: How to make UCL appear in Histogram?

Yes, to detect analysis errors and discuss them, the visualization in Jmp is a great advantage!

How good that we have GraphBuilder
It can replace many of the other [sometimes limited] analysis platforms