cg_RunChart | R Documentation |
Function visualize the given values of measurement in a Run Chart
cg_RunChart(
x,
target,
tolerance,
ref.interval,
facCg,
facCgk,
n = 0.2,
col = "black",
pch = 19,
xlim = NULL,
ylim = NULL,
main = "Run Chart",
conf.level = 0.95,
cgOut = TRUE
)
x |
A vector containing the measured values. |
target |
A numeric value giving the expected target value for the x-values. |
tolerance |
Vector of length 2 giving the lower and upper specification limits. |
ref.interval |
Numeric value giving the confidence interval on which the calculation is based. By default it is based on 6 sigma methodology.
Regarding the normal distribution this relates to |
facCg |
Numeric value as a factor for the calculation of the gage potential index. The default Value for |
facCgk |
Numeric value as a factor for the calculation of the gage capability index. The default value for |
n |
Numeric value between |
col |
Character or numeric value specifying the color of the curve in the run chart. Default is |
pch |
Numeric or character specifying the plotting symbol. Default is |
xlim |
Numeric vector of length 2 specifying the limits for the x-axis. Default is |
ylim |
Numeric vector of length 2 specifying the limits for the y-axis. Default is |
main |
Character string specifying the title of the plot. Default is |
conf.level |
Confidence level for internal |
cgOut |
Logical value deciding whether the |
The calculation of the potential and actual gage capability are based on the following formulae:
Cg = (facCg * tolerance[2]-tolerance[1])/ref.interval
Cgk = (facCgk * abs(target-mean(x))/(ref.interval/2)
If the usage of the historical process variation is preferred the values for the tolerance tolerance
must be adjusted manually. That means in case of the 6 sigma methodology for example, that tolerance = 6 * sigma[process]
.
The function cg_RunChart
returns a list of numeric values. The first element contains the calculated centralized gage potential index Cg
and the second contains the non-centralized gage capability index Cgk
.
cg_HistChart
, cg_ToleranceChart
, cg
x <- c(9.991, 10.013, 10.001, 10.007, 10.010, 10.013, 10.008,9.992,
10.017, 10.005, 10.005, 10.002, 10.017, 10.005, 10.002, 9.996,
10.011, 10.009, 10.006, 10.008, 10.003, 10.002, 10.006, 10.010, 10.013)
cg_RunChart(x = x, target = 10.003, tolerance = c(9.903, 10.103))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.