Learn R Programming

success (version 1.0.1)

plot.cgrcusum: Plot a quality control chart

Description

Plot a cgrcusum, bkcusum, bercusum or funnelplot chart, or a list containing a combination of 'bercusum', 'bkcusum' and 'cgrcusum' charts.

Usage

# S3 method for cgrcusum
plot(x, h, ...)

# S3 method for bkcusum plot(x, h, ...)

# S3 method for funnelplot plot(x, percentage = TRUE, unit_label = TRUE, label_size = 3, col_fill = "blue", ...)

# S3 method for bercusum plot(x, h = x$h, ...)

Value

A plot of the associated chart is displayed in the current graphics device.

Arguments

x

Chart to plot

h

Control limit to display for cgrcusum, bkcusum or bercusum

...

Further plotting parameters

percentage

Should output be shown in percentages? Default is TRUE.

unit_label

Should unit labels be displayed next to detected units in the funnel plot? Default is TRUE.

label_size

Size of the labels when unit_label is TRUE. Default is 3.

col_fill

Single fill colour for the prediction intervals in the funnel plot. In any format that col2rgb accepts. Default is "blue".

Methods (by class)

  • plot(cgrcusum): Plot a CGR-CUSUM

  • plot(bkcusum): Plot a BK-CUSUM

  • plot(funnelplot): Display a funnel plot

  • plot(bercusum): Plot a Bernoulli CUSUM

Author

Daniel Gomon

See Also

cgr_cusum, bk_cusum, bernoulli_cusum, funnel_plot