<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Control Charts</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="R.css" />
</head><body>

<table width="100%" summary="page for ss.cc"><tr><td>ss.cc</td><td style="text-align: right;">R Documentation</td></tr></table>

<h2>Control Charts</h2>

<h3>Description</h3>

<p>Plot control charts
</p>


<h3>Usage</h3>

<pre>
ss.cc(type, data, cdata, CTQ = names(data)[1], groups, climits, nsigmas = 3)
</pre>


<h3>Arguments</h3>

<table summary="R argblock">
<tr valign="top"><td><code>type</code></td>
<td>
<p>Type of chart (see details)</p>
</td></tr>
<tr valign="top"><td><code>data</code></td>
<td>
<p>data.frame with the process data.</p>
</td></tr>
<tr valign="top"><td><code>cdata</code></td>
<td>
<p>Vector with the controlled process data to compute limits.</p>
</td></tr>
<tr valign="top"><td><code>CTQ</code></td>
<td>
<p>Name of the column in the data.frame containing the CTQ.</p>
</td></tr>
<tr valign="top"><td><code>groups</code></td>
<td>
<p>Name of the column in the data.frame containing the groups.</p>
</td></tr>
<tr valign="top"><td><code>climits</code></td>
<td>
<p>Limits of the controlled process. It should contain three 
ordered values: lower limit, center line and upper limit.</p>
</td></tr>
<tr valign="top"><td><code>nsigmas</code></td>
<td>
<p>Number of sigmas to compute the limits from the center line
(default is 3)</p>
</td></tr>
</table>


<h3>Details</h3>

<p>If control limits are provided, <code>cdata</code> is dismissed and a message is 
shown. If there are no control limits nor controlled data, the limits are 
computed using <code>data</code>.
<br />
Supported types of control charts:
</p>

<ul>
<li><p>mrMoving Range
</p>
</li></ul>



<h3>Value</h3>

<p>A plot with the control chart, and a list with the following elements:
</p>
<table summary="R valueblock">
<tr valign="top"><td><code>LCL</code></td>
<td>
<p>Lower Control Limit</p>
</td></tr>
<tr valign="top"><td><code>CL</code></td>
<td>
<p>Center Line</p>
</td></tr>
<tr valign="top"><td><code>UCL</code></td>
<td>
<p>Upper Control Limit</p>
</td></tr>
<tr valign="top"><td><code>phase</code></td>
<td>
<p>II when cdata or climits are provided. I otherwise.</p>
</td></tr>
<tr valign="top"><td><code>out</code></td>
<td>
<p>Out of control points</p>
</td></tr>
</table>


<h3>Note</h3>

<p>We have created this function since the <code>qAnalyst</code> package has been
removed from <code>CRAN</code>, and it was used in the &quot;Six Sigma with R&quot; book to
plot moving average control charts.
</p>


<h3>Author(s)</h3>

<p>EL Cano
</p>


<h3>References</h3>

<p>Cano, Emilio L., Moguerza, Javier M. and Redchuk, Andres. 2012.
<em>Six Sigma with R. Statistical Engineering for Process
Improvement</em>, Use R!, vol. 36. Springer, New York.
<a href="https://www.springer.com/gp/book/9781461436515">https://www.springer.com/gp/book/9781461436515</a>.
</p>


<h3>See Also</h3>

<p><code>ss.cc.constants</code>
</p>


<h3>Examples</h3>

<pre>
ss.cc("mr", ss.data.pb1, CTQ = "pb.humidity")
testout &lt;- ss.data.pb1
testout[31,] &lt;- list(31,17)
ss.cc("mr", testout, CTQ = "pb.humidity")

</pre>


</body></html>
