Last data update: 2014.03.03

R: X-bar and R control charts
cchart.Xbar_RR Documentation

X-bar and R control charts

Description

This function builds the X-bar and R control charts in the same window.

Usage

cchart.Xbar_R(x, sizes)

Arguments

x

The data to be plotted.

sizes

A value or a vector of values specifying the sample sizes associated with each group.

Value

Return the two control charts.

Author(s)

Daniela R. Recchia, Emanuel P. Barbosa.

Examples

data(pistonrings)
attach(pistonrings)
cchart.Xbar_R(pistonrings[1:25, ])

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(IQCC)
Loading required package: qcc
Package 'qcc', version 2.6
Type 'citation("qcc")' for citing this R package in publications.
Loading required package: MASS
Loading required package: micEcon

If you have questions, suggestions, or comments regarding one of the 'micEcon' packages, please use a forum or 'tracker' at micEcon's R-Forge site:
https://r-forge.r-project.org/projects/micecon/
Loading required package: miscTools
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/IQCC/cchart.Xbar_R.Rd_%03d_medium.png", width=480, height=480)
> ### Name: cchart.Xbar_R
> ### Title: X-bar and R control charts
> ### Aliases: cchart.Xbar_R
> 
> ### ** Examples
> 
> data(pistonrings)
> attach(pistonrings)
> cchart.Xbar_R(pistonrings[1:25, ])
List of 11
 $ call      : language qcc(data = x, type = "R", add.stat = F)
 $ type      : chr "R"
 $ data.name : chr "x"
 $ data      : num [1:25, 1:5] 74 74 74 74 74 ...
  ..- attr(*, "dimnames")=List of 2
 $ statistics: Named num [1:25] 0.038 0.019 0.036 0.022 0.026 ...
  ..- attr(*, "names")= chr [1:25] "1" "2" "3" "4" ...
 $ sizes     : Named int [1:25] 5 5 5 5 5 5 5 5 5 5 ...
  ..- attr(*, "names")= chr [1:25] "1" "2" "3" "4" ...
 $ center    : num 0.0228
 $ std.dev   : num 0.00979
 $ nsigmas   : num 3
 $ limits    : num [1, 1:2] 0 0.0481
  ..- attr(*, "dimnames")=List of 2
 $ violations:List of 2
 - attr(*, "class")= chr "qcc"
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>