View source: R/plot_control_chart.R
plot_control_chart | R Documentation |
Function to plot a control chart.
plot_control_chart(
df,
by = as.character(),
size = 2,
control_constant = 1.128,
control_multiplier = 3,
add_reference = FALSE,
scales = "fixed"
)
df |
Input data frame containing |
by |
A character vector indicating the grouping variables within
|
size |
Size of the plots' points. |
control_constant |
Constant used to transform the mean delta to sequential deviation. Through simulations, this is usually set as 1.128 |
control_multiplier |
Multiplier for sequential deviation to get the lower and upper control limits, typically 3. |
add_reference |
Should a reference value be added to the plot? This value
must be called |
scales |
A ggplot2 argument for setting the scales of the facets. |
ggplot2 plot.
Stuart K. Grange
calculate_control_limits
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.