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
tom_abramov
Level V

Overlay chart with phases

Hello,

I would like to build kind of IR Control chart with phases but with user defined limits for each phase instead of control limits calculated by JMP.

I tried it in Graph Builder but I cannot set X axises independent.

Please see screenshot of my trial in Graph Builder.

Thank you.

1 ACCEPTED SOLUTION

Accepted Solutions
ian_jmp
Level X

Re: Overlay chart with phases

You can interactively add a graphics script to Control Chart Builder to draw the spec limits. To see an example run the code below.

 

NamesDefaultToHere(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");
dt << Control Chart Builder(
					Show Control Panel( 0 ),
					Show Limit Summaries( 0 ),
					Show Capability( 0 ),
					Variables( Y( :height ), Phase( :sex ) ),
					Chart(
						Position( 1 ),
						Limits( Sigma( Moving Range ), Show Center Line( 0 ), Show Limits( 0 ) ),
						Add Spec Limits( {LSL( 55 ), USL( 65 )} )
					),
					Chart(
						Position( 2 ),
						Limits( Sigma( Moving Range ), Show Center Line( 0 ), Show Limits( 0 ) )
					),
					SendToReport(
						Dispatch(
							{},
							"Control Chart Builder",
							FrameBox( 2 ),
							{Add Graphics Script(
								2,
								Description( "Spec Limits" ),
								Pen Color( "Red" );
								Line Style( "Dashed" );
				// Spec limits for Females
								H Line( 0, 18, 55 );
								H Line( 0, 18, 65 );
				// Spec limits for Males
								H Line( 19, 40, 57 );
								H Line( 19, 40, 70 );
							), Grid Line Order( 1 ), Reference Line Order( 3 )}
						)
					)
				);

 

which gives:

 

 

Screen Shot 2017-04-06 at 13.29.46.png 

 

With a little work, you could do this programmatically if you have many cases.

 

View solution in original post

5 REPLIES 5

Re: Overlay chart with phases

You can do this in Control Chart Builder.  See my blog post.  https://community.jmp.com/t5/JMPer-Cable/4-ways-to-use-fixed-baseline-historical-control-limits-in/b...

 

Take a look at Method #3.

tom_abramov
Level V

Re: Overlay chart with phases

Thank you Tonya.

"Get Limits" solves this when I have two limits to show.

I need to show two pairs of limits (for example spec. and control limits) with phases.

Is that possible in Control Chart Builder or Graph Builder?

I tried in Graph Builder but the problem is same X Axes for each phase.

Is it possible to make independent X Axis for each phase?

 

BG.

Re: Overlay chart with phases

Control Chart Builder does not offer capability analysis with a phase variable.  You could do this in the new Process Screening platform.  However, it will not give you the graph you are looking for.  You will get a separate graph for each phase rather than a single graph.

Graph Builder is not my area of expertise.  Perhaps someone else can comment on your question about separate axes.

ian_jmp
Level X

Re: Overlay chart with phases

You can interactively add a graphics script to Control Chart Builder to draw the spec limits. To see an example run the code below.

 

NamesDefaultToHere(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");
dt << Control Chart Builder(
					Show Control Panel( 0 ),
					Show Limit Summaries( 0 ),
					Show Capability( 0 ),
					Variables( Y( :height ), Phase( :sex ) ),
					Chart(
						Position( 1 ),
						Limits( Sigma( Moving Range ), Show Center Line( 0 ), Show Limits( 0 ) ),
						Add Spec Limits( {LSL( 55 ), USL( 65 )} )
					),
					Chart(
						Position( 2 ),
						Limits( Sigma( Moving Range ), Show Center Line( 0 ), Show Limits( 0 ) )
					),
					SendToReport(
						Dispatch(
							{},
							"Control Chart Builder",
							FrameBox( 2 ),
							{Add Graphics Script(
								2,
								Description( "Spec Limits" ),
								Pen Color( "Red" );
								Line Style( "Dashed" );
				// Spec limits for Females
								H Line( 0, 18, 55 );
								H Line( 0, 18, 65 );
				// Spec limits for Males
								H Line( 19, 40, 57 );
								H Line( 19, 40, 70 );
							), Grid Line Order( 1 ), Reference Line Order( 3 )}
						)
					)
				);

 

which gives:

 

 

Screen Shot 2017-04-06 at 13.29.46.png 

 

With a little work, you could do this programmatically if you have many cases.

 

tom_abramov
Level V

Re: Overlay chart with phases

Great!

Thank you!