plot_control_chart {bcc}R Documentation

Plot Control Chart

Description

Generates and plots a control chart using the given data, sizes, type, and control limits.

Usage

plot_control_chart(data, type, limits, title, sizes = NULL)

Arguments

data

A numeric vector of data values.

type

An integer representing the type of control chart (either 1 or 2).

limits

A list containing the lower and upper control limits, and the center.

title

A string for the plot title.

sizes

A numeric vector of sample sizes.

Value

A plot of the control chart.

Examples

data <- c(0.12, 0.18, 0.14, 0.28, 0.22)
sizes <- c(101, 98, 110, 105, 95)
limits <- list(lcl = 4.03915, ucl = 16.0, center = 0.216)
plot_control_chart(data, type=1, limits=limits, title="Sample Control Chart", sizes=sizes)

[Package bcc version 1.5 Index]