Reference Guide > X–Z Routines > XRCHART Procedure
  

XRCHART Procedure
Creates an XR chart with an X Bar chart on top and an R chart beneath it. Generally, you input data from an in-control process to determine the upper and lower control limits. You then enter subsequent data using the control limits from the in-control process to determine if the process remains in control.
Usage
XRCHART, data
Input Parameters
data—A one or two dimensional array of process data. A 1D-array contains summarized data. For example, sample means for each sample, and requires the 'PSigma' or 'PRange' and 'Sampn' keywords (below).
A 2D-array must be of the form MxN, where M is the number of samples and N is the number of observations in each sample. Each sample must contain the same number of observations. For example, if you take four measurements from each of 16 production runs you must arrange the data into a 16x4 array.
Keywords
AnnotColor—A color index for the chart annotation. (Defaults to !P.COLOR)
Background—A color index for the plot background.
(XR)CLineColor—A color index for the central (mean) line. (Defaults to !P.COLOR)
(XR)CLineStyle—A linestyle value for the central line. (Defaults to solid)
(XR)ClineThick—A thickness value for the central line. (Defaults to 1.0)
(XR)Color—A color index for the plot axes. (Defaults to !P.COLOR)
DTarray—An array of Date/Time variables to be used for the X axes. This will cause the graphs to be slightly compressed to accommodate the DT axes.
(XR)LCL0—A known, scalar value or array of values from an in-control process to be used in place of calculated Lower Control Limit (LCL) values.
(XR)LCLLineStyle—A linestyle value for the LCL line. (Defaults to solid)
(XR)LCLOut—A output variable into which you want the calculated LCL stored. If the sample sizes are not all identical, this value is an array. Otherwise it is scalar.
(XR)LCLThick—A thickness value for the LCL line. (Defaults to 1.0.\(XR)).
LCLColor—A color index for the LCL line. (Defaults to !P.COLOR)
Limit—The control limit expressed as multiples of sigma. (Defaults to 3)
Max_Levels—Sets the maximum number of levels on a Date/Time axis. For more details, see the PV-WAVE PLOT Procedures.
(XR)MeanOut—A output variable into which you wish the calculated mean stored.
NoAnnot—Toggle to suppress annotation.
(XR)NoCLine—Toggle to suppress the central line.
(XR)NoLCL—Toggle to suppress the LCL line.
(XR)NoUCL—Toggle to suppress the Upper Control Limit (UCL) line.
(XR)PMean—Known Population mean. If this keyword is not provided the mean is calculated from the data.
PRange—2D data: Not required.
*For 1D data: An array with the known range of each sample. If 'PSigma' is not provided, these values will be used to estimate the sample standard deviation.
PSigma—2D data: Scalar value to override the calculation of the standard deviation.
*For 1D data: An array containing a standard deviation for each sample mean in the input data. 'PSigma' takes precedence over 'PRange'.
(XR)PlotColor—A color index or array of color indices for the data points. (Defaults to !P.COLOR)
(XR)PlotLineStyle—A linestyle value for the data points. (Defaults to solid)
(XR)PlotThick—Line thickness value for the data plot. (Defaults to 1.0)
(XR)Points—An output variable into which to store the plotted points.
(XR)PSym—Plot symbol for the data points.
(XR)RefLinePoints—Data value or array of values along the Yaxis at which to place horizontal reference lines.
(XR)RefLineColor—Color index or array of color indices for the horizontal reference line(s).
(XR)RefLineStyle—Linestyle value or array of linestyle values for the horizontal reference line(s)
(XR)RefLineThick—Line thickness value or array of line thickness values for the horizontal reference lines.
(XR)RefLineLabel—String or array of strings used to label the horizontal reference line(s).
Sampn—(1D input data) A scalar or array representing the number of observations in each sample. A scalar indicates the sample size is constant.
*(2D input data) Not required.
SigmaOut—An output variable into which you want the estimated sigma value stored.
Start_Level—Specify the initial level of tick labels to be displayed on a Date/Tim axis. For more details, see the PV‑WAVE PLOT Procedures.
(XR)Tickformat—Format specifier for the tick labels on the Y axis.
Title—String for the plot title.
(XR)UCL0—A known, scalar Upper Control Limit from an in-control process to be used in place of calculated values.
(XR)UCLLineStyle—A scalar linestyle value for the UCL line.
(XR)UCLOut—An output variable into which you want the calculated Upper Control limit stored. If the sample sizes are not all identical, this value is an array. Otherwise it is scalar.
(XR)UCLThick—Scalar thickness value for the UCL line.
(XR)UCLColor—A color index for the UCL line.
XRange—A two element integer array for the range of the X axes. Ignored for Date/Time Axes.
XSize—The width of the plot window in pixels. Must be accompanied by the 'YSize' keyword. (Defaults to 640)
(XR)Ticklen—Controls the length of the X axes tick marks. For more details, see the PV-WAVE PLOT Procedures.
XTicks—The number of minor tick marks between the major ones on the X axes.
(XR)XTitle—String for title of the X axis.
TColor—Color index for X, R and the main titles.
YSize—The height of the plot window in pixels. Must be accompanied by the 'XSize' keyword. (Defaults to 512)
(XR)YTitle—String for title of Y axis.
(XR)YTicks—Number of major tickmarks on the Y axis.
Example
This example creates a sample x observations(6x3) array.
run1 = [15.09, 15.17, 14.99]
run2 = [14.87, 15.46, 15.01]
run3 = [15.00, 15.13, 14.68]
run4 = [14.94, 15.15, 14.69]
run5 = [14.65, 15.02, 15.12]
run6 = [15.01, 15.08, 15.13]
run = TRANSPOSE([[run1], [run2], [run3], $
                 [run4], [run5], [run6]])
; Chart shows a process within the std 3-sigma control limits.
XRCHART, run, Title='XR Chart'
See Also
PARETO, XSCHART, XBAR, MACHART, CUSUM

Version 2017.0
Copyright © 2017, Rogue Wave Software, Inc. All Rights Reserved.