Create an object of class 'mqcd' to perform statistical quality control. This object is used to plot Multivariate Control Charts.
Arguments
- x
A matrix, a data-frame or an array where it should contain data.
- data.name
A string that specifies the title displayed on the plots. If not provided it is taken from the name of the object
x
.
Examples
library(qcr)
data(dowel1)
str(dowel1)
#> 'data.frame': 40 obs. of 2 variables:
#> $ diameter: num 0.492 0.501 0.491 0.492 0.505 0.5 0.497 0.509 0.49 0.499 ...
#> $ length : num 0.988 1.011 1.008 0.97 1.003 ...
data.mqcd <- mqcd(dowel1)
str(data.mqcd)
#> 'mqcd' num [1:40, 1:2, 1] 0.492 0.501 0.491 0.492 0.505 0.5 0.497 0.509 0.49 0.499 ...
#> - attr(*, "dimnames")=List of 3
#> ..$ : NULL
#> ..$ : chr [1:2] "diameter" "length"
#> ..$ : NULL
#> - attr(*, "data.name")= chr " DATA"
#> - attr(*, "type.data")= chr "Multivariate"