View source: R/control_chart.R
| plot_control_chart | R Documentation |
Draws a control chart returned by control_chart(): the monitored
statistic in time order, the center line, the control limits and the
signals, with the end of the baseline marked.
plot_control_chart(
object,
title = NULL,
xlab = "Order",
ylab = NULL,
base_size = 11,
point_size = 1.3,
point_alpha = 1
)
object |
The result of |
title |
The plot title. By default, the method and the number of signals. |
xlab, ylab |
The axis titles. Default are |
base_size |
The size of the text, in points. Default is 11. |
point_size |
The size of the points. Default is 1.3. |
point_alpha |
The opacity of the points, between 0 and 1. Default is 1. |
A ggplot object.
control_chart()
set.seed(1)
ratio <- 1 + c(rep(0, 60), seq(0, 0.06, length.out = 40)) + rnorm(100, sd = 0.02)
plot_control_chart(control_chart(ratio, method = "cusum", baseline = 40))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.