Skip to contents

A control chart is a specific type of graph that shows data points between upper and lower limits over a period of time. You can use it to understand if the process is in control or not. These charts commonly have three types of lines such as upper and lower specification limits, upper and lower limits and planned value. By the help of these lines, Control Charts show the process behavior over time.


  .interactive = FALSE,
  .median = TRUE,
  .cl = TRUE,
  .mcl = TRUE,
  .ucl = TRUE,
  .lc = FALSE,
  .lmcl = FALSE,
  .llcl = FALSE



The data.frame/tibble to be passed.


The column holding the timestamp.


The column with the values to be analyzed.


Default is FALSE, TRUE for an interactive plotly plot.


Default is TRUE. This will show the median line of the data.


This is the first upper control line


This is the second sigma control line positive


This is the third sigma control line positive


This is the first negative control line


This is the second sigma negative control line


This si the thrid sigma negative control line


A static ggplot2 graph or if .interactive is set to TRUE a plotly plot


  • Expects a time-series tibble/data.frame

  • Expects a date column and a value column


Steven P. Sanderson II, MPH



data_tbl <- ts_to_tbl(AirPassengers) %>%

data_tbl %>%
    .date_col    = date_col
    , .value_col = value
    , .llcl      = TRUE