Run charts are one of the fundamental tools of quality improvement. The runchart package is designed to make it quick and easy to create run charts. Read the documentation and quick start guide at https://jsphdms.github.io/runchart/. Or learn more in
A number of R packages exist to automate statistical process control charts. For example:
The runchart package is different from the above because it focusses solely on run charts and provides the ability to automatically rephase baselines. The package exports a single easy to use function
runchart is not currently available from CRAN, but you can install the development version from github with:
# install.packages("devtools") devtools::install_github("jsphdms/runchart")
Format your data into a dataframe with two columns: date and value. Then feed it into the
runchart() function. By default shifts and trends are displayed (triggering at 6 and 5 consecutive points respectively) and the baseline is not rephased. These defaults can be changed to suit your methodology (see
vignette("quick-start") for more details.
library(runchart) library(ggplot2) value <- as.numeric(LakeHuron) df <- data.frame(date = seq.Date(Sys.Date(), by = "day", length.out = length(value)), value = value) runchart(df)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.