[Script] Get rid of Moving Range chart in control chart builder<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
Hello~ all~
Is there a way to get rid of Moving Range chart
in the 'Control chart builder' platform
by using JMP script? : )

Here is the script for the 'control chart builder' sample.
dt = Open( "$SAMPLE_DATA/Quality Control/Coating.jmp" );
dt << Control Chart Builder(
Show Control Panel( 0 ),
Variables( Subgroup( :Pin ), Y( :Weight ) ),
Chart( Position( 1 ), Limits( Spec Limits( 1 ) ), Warnings( Test 1( 1 ) ) ),
Chart( Position( 2 ) ),
SendToReport( Dispatch( {}, "graph title", TextEditBox, {Set Text( "Individual chart of Weight" )} ) )
);
Re: [Script] Get rid of Moving Range chart in control chart builderThe script I have creates the chart then saves it to a journal. Is there any way to pause the script so the user can manually remove the Range chart, then continue the script which saves the chart to a journal (and does other stuff)?
Thanks.
Re: [Script] Get rid of Moving Range chart in control chart builderYou should be able to go to the JMP update site and for free download 12.2
Re: [Script] Get rid of Moving Range chart in control chart builderThanks, but it doen't work for me. Must be something specific about 12.1.0 (not Pro). Good to know at least this will be fixed in a later version, though I hope it will be fixed in the non-pro version.
Re: [Script] Get rid of Moving Range chart in control chart builderHere is a script using the Big Class data table, and your script, running in JMP 12.2 and it seems to work great

dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
Control Chart Builder(
Show Two Shewhart Charts( 0 ),
Size( 650, 500 ),
Show Control Panel( 0 ),
Show Capability( 0 ),
Variables( Subgroup( :age ), Y( :height ) ),
Customize Tests( Test 2( 8, "2" ), Test 3( 7, "3" ) ),
Chart(
Position( 1 ),
Points( Statistic( "Individual" ) ),
Limits( Sigma( "Moving Range" ) ),
Warnings( Test 1( 1 ), Test 2( 1 ), Test 3( 1 ) )
)
);
Re: [Script] Get rid of Moving Range chart in control chart builderThanks for the information on how to remove the mR chart with JSL. Unfortunately it's not working for me, and anyone has a solution that would be greatly appreciated. I am using JMP 12.1.0, have placed the TwoCharts(0) first, and taken out the Chart(Position(2)), but am still getting both charts. Below is the code I am using. Thanks Again!
Control Chart Builder(
Show Two Shewhart Charts(0),
Size( 650, 500 ),
Show Control Panel( 0 ),
Show Capability( 0 ),
Variables( Subgroup( :Batch ), Y( :Peak ) ),
Customize Tests( Test 2( 8, "2" ), Test 3( 7, "3" ) ),
Chart( Position( 1 ),
Points( Statistic( "Individual" ) ),
Limits( Sigma( "Moving Range" ) ),
Warnings( Test 1( 1 ), Test 2( 1 ), Test 3( 1 ) )
)
);
Re: [Script] Get rid of Moving Range chart in control chart builderThanks Karen! placing the Show Two Shewhart Charts (0) statement first worked for me --I also had to remove the reference to Chart Position 2 to get it to work:
delete or comment out this line:
Chart( Position( 2 ) ),
Re: [Script] Get rid of Moving Range chart in control chart builderKaren@boulderstats is correct. If you put the Show Two Shewhart Charts (0) statement first, you'll get the single individuals chart.
Note: If you place that statement second (or beyond) in your chart builder script, you'll get the default of two Shewhart charts (regardless of your preference setting and regardless of whether you put 1 or 0 in the Shewhart line of the script.
Re: [Script] Get rid of Moving Range chart in control chart builderDon't ask me why, I am just a JSL hack. Swap the Show Control Panel and Show Two Stewart Chart commands so that the two chart command is first. That worked for me.
Karen
Re: [Script] Get rid of Moving Range chart in control chart builderHello Karen~~
Thank you for your advice~!
Yes~~ That's it, but it's not working. I dont know why..
I also tried it with other computers, but it doesn't work. (JMP Version 11.2.1)
(File > Preferences > Platforms > Control Chart Builder : Inactivate "Show Two Shewhart Chart")
dt = Open( "$SAMPLE_DATA/Quality Control/Coating.jmp" );
dt << Control Chart Builder(
Show Control Panel( 0 ),
Show Two Shewhart Charts( 0 ),
Variables( Subgroup( :Pin ), Y( :Weight ) ),
Chart( Points( Statistic( "Individual" ) ), Limits( Sigma( "User Defined" ), Spec Limits( 1 ) ), Warnings( Test 1( 1 ), Test 2( 1 ), Test 3( 1 ) ) )
);
Re: [Script] Get rid of Moving Range chart in control chart builderJames,
When I made up an example, removed the MR chart and saved the script I get at "Show Two Shewhart Charts (0)" line of code...if it is set to 1 I get both charts, 0 to get one chart. The line of code only appeared in the saved script AFTER I manually removed the chart, the joys of JSL?
Karen
Control Chart Builder(
Show Two Shewhart Charts( 0 ),
Show Capability( 0 ),
Variables( Y( :column name ) ),
Chart( Points( Statistic( "Individual" ) ), Limits( Sigma( "Moving Range" ) ) )
);
Re: [Script] Get rid of Moving Range chart in control chart builderThank you so much~ LouV,
But my question is ... remove the 'Moving Range chart' by using JMP script...
[1] I'm currently use JMP 11.
I can click the mouse right button and 'Remove' button to remove it, but there are over 100 control charts. So I have to use JMP script.
[2] I thought that if I delete the 'Chart (Position (2))' in the script
, then I could remove the 2nd control chart which is 'Moving Range chart' but it couldn't. (It feels bug ... Maybe I don't know how to change it )
dt = Open( "$SAMPLE_DATA/Quality Control/Coating.jmp" );
dt << Control Chart Builder( Show Control Panel( 0 ),
Variables( Subgroup( :Pin ), Y( :Weight ) ),
Chart( Position( 1 ), Limits( Spec Limits( 1 ) ), Warnings( Test 1( 1 ) ) ),
Chart( Position( 2 ) ),
SendToReport( Dispatch( {}, "graph title", TextEditBox, {Set Text( "Individual chart of Weight" )} ) )
);
[3] I know there is a 'IR' menu for I chart
, but I have to use 'control chart builder' menu to customize the rule 2. (form 9 to 8 points)

----------- or --------------
Maybe I have to use 'I' chart menu...
adding formula with label funtion for Rule 2 (Marks on the 8points) (Default : marks from 9points)
Re: [Script] Get rid of Moving Range chart in control chart builderJames,
It is very subtle, if place your cursor on the Y-axis of the Moving range just until the hand is facing up (this is somewhat tricky), then drag the hand (axis) to the left and the Moving Range chart will disappear.

Re: [Script] Get rid of Moving Range chart in control chart builderThank you, this is great!