plot.mqcs: Plot method for 'mqcs' objects

View source: R/plot.mqcs.R

plot.mqcsR Documentation

Plot method for 'mqcs' objects

Description

Generic function for plotting Multivarite charts of object of class 'mqcs' to perform statistical quality control.

Usage

## S3 method for class 'mqcs'
plot(x, title, subtitle, xlab, ylab, ylim, ...)

## S3 method for class 'mqcs.t2'
plot(
  x,
  title = NULL,
  subtitle = NULL,
  xlab = NULL,
  ylab = NULL,
  ylim = NULL,
  ...
)

## S3 method for class 'mqcs.mcusum'
plot(
  x,
  title = NULL,
  subtitle = NULL,
  xlab = NULL,
  ylab = NULL,
  ylim = NULL,
  ...
)

## S3 method for class 'mqcs.mewma'
plot(
  x,
  title = NULL,
  subtitle = NULL,
  xlab = NULL,
  ylab = NULL,
  ylim = NULL,
  ...
)

Arguments

x

An Object of class 'mqcs' (Multivarite Quality Control Statical)

title

An overall title for the plot.

subtitle

A sub title for the plot.

xlab

A title for the 'x' axis.

ylab

A title for the 'y' axis.

ylim

The 'y' limits of the plot.

...

Arguments to be passed to or from methods.

Examples

## Not run: 
## 
## Continuous data 
## 
data(dowel1) 
data.mqcd <- mqcd(dowel1)  
res.mqcs <- mqcs.mcusum(data.mqcd) 
plot(res.mqcs, title =" MCUSUM Control Chart ", subtitle="Database dowel1",
     xlab = "Observations", ylab = "MCUSUM", ylim = c(-1,6.5)) 

res1.mqcs <- mqcs.mewma(data.mqcd) 
plot(res1.mqcs, title =" MEWMA Control Chart", subtitle="Database dowel1",
     xlab = "Observations", ylab = "MEWMA", ylim = c(-1,10))
      
res2.mqcs <- mqcs.t2(data.mqcd)
plot(res2.mqcs, title =" Hotelling Control Chart",subtitle="Database dowel1",
     xlab = "Observations", ylab = "T2 Hotelling", ylim = c(-1,14))
## End(Not run)

mflores72000/qcr documentation built on July 1, 2023, 9:17 p.m.