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 Or learn more in vignette("quick-start") or ?runchart.

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().


runchart is not currently available from CRAN, but you can install the development version from github with:

# install.packages("devtools")


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.


value <- as.numeric(LakeHuron)
df <- data.frame(date  = seq.Date(Sys.Date(), by = "day", length.out = length(value)),
                 value = value)

jsphdms/runchart documentation built on Oct. 30, 2017, 9:44 p.m.