cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Choose Language Hide Translation Bar

Change color of points in control charts

Hello,

 

I hope you are doing well.

 

Is there any way in a JMP script to have a specific color for each points of each phase?

 

Thank you very much and have a nice day,

 

Jean

1 ACCEPTED SOLUTION

Accepted Solutions
Byron_JMP
Staff

Re: Change color of points in control charts

Check the scripting index. Here's an example.

 


dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt << Color or Mark by Column( :Age );

Just substitute in your phase column.

If you save the CC script to your data table, you can add this to the end of the script, so it will change colors when you run the CC script.

 

 

Now, if you wanted to have a little more fun with it, you could open the control chart, then color or mark by column. Then when when the CCB window is closed you could clear the row states.

 

But that would just be showing off.

 

Note, that If this script is in a data table, you wouldn't need the open, just maybe define the current table as dt.


dt=open("$SAMPLE_DATA/Big Class.JMP");
//dt=current data table():

ccobj = dt << Control Chart Builder(
	Variables( Y( :Weight ) )
);
dt << Color or Mark by Column( :Age );
ccobj << On Close(
  dt<<clear row states;
);

 

JMP Systems Engineer, Health and Life Sciences (Pharma)

View solution in original post

3 REPLIES 3
statman
Super User

Re: Change color of points in control charts

Jean,

 

After the control chart is produced, go to Rows>Color or Mark by Column and select the column that contains the phases in your data table.  You can color or change the shape.


"All models are wrong, some are useful" G.E.P. Box
Byron_JMP
Staff

Re: Change color of points in control charts

Check the scripting index. Here's an example.

 


dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt << Color or Mark by Column( :Age );

Just substitute in your phase column.

If you save the CC script to your data table, you can add this to the end of the script, so it will change colors when you run the CC script.

 

 

Now, if you wanted to have a little more fun with it, you could open the control chart, then color or mark by column. Then when when the CCB window is closed you could clear the row states.

 

But that would just be showing off.

 

Note, that If this script is in a data table, you wouldn't need the open, just maybe define the current table as dt.


dt=open("$SAMPLE_DATA/Big Class.JMP");
//dt=current data table():

ccobj = dt << Control Chart Builder(
	Variables( Y( :Weight ) )
);
dt << Color or Mark by Column( :Age );
ccobj << On Close(
  dt<<clear row states;
);

 

JMP Systems Engineer, Health and Life Sciences (Pharma)

Re: Change color of points in control charts

Thank you very much!