Run Chart
Run Chart using Control Chart
Example 1
Summary: Creates a control chart with sample label, K-Sigma level, and run chart configuration for weight data.
Code:
dt under test = Open("data_table.jmp");
obj = Control Chart( Sample Label( :Sample ), KSigma( 3 ), Chart Col( :Weight, Run Chart( Show Center Line( 0 ) ) ) );
Code Explanation:
- Open data table;
- Create control chart object.
- Set sample label column.
- Define K-Sigma level to 3.
- Add weight column to chart.
- Configure run chart for weight.
- Show center line at 0.
Example 2
Summary: Creates a control chart with 3 sigma limits, using a log-transformed 'Percent Increase' column and generating a report.
Code:
dt = Open("data_table.jmp");
obj = dt << Control Chart(
Sample Size( 1 ),
KSigma( 3 ),
Chart Col( Transform Column( "Log[Percent Increase]", Formula( Log( :Percent Increase ) ) ), Run Chart( Show Center Line( 0 ) ) )
);
rpt = obj << report;
Code Explanation:
- Open data_table data
- Create control chart object.
- Set sample size to 1.
- Use 3 sigma limits.
- Add log-transformed Percent Increase column.
- Apply logarithm formula to Percent Increase.
- Create run chart for transformed column.
- Show center line at 0.
- Generate report from control chart.
- Assign report to rpt variable.
Example 3
Summary: Creates a control chart with sample size 1 and K Sigma 3, featuring Weight column and run chart without center line.
Code:
dt = Open("data_table.jmp");
cc = Control Chart( Sample Size( 1 ), KSigma( 3 ), Chart Col( :Weight, Run Chart( Show Center Line( 0 ) ) ) );
rpt = cc << report;
Code Explanation:
- Open data_table data
- Create control chart.
- Set sample size to 1.
- Set K Sigma to 3.
- Add Weight column.
- Use run chart.
- Hide center line.
- Assign chart to "cc".
- Generate report.
- Assign report to "rpt".