- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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;
);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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;
);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Change color of points in control charts
Thank you very much!