Quality Improvement Charts

Functions for making run charts [Anhoej, Olesen (2014) ] and basic Shewhart control charts [Mohammed, Worthington, Woodall (2008) ] for measure and count data. The main function, qic(), creates run and control charts and has a simple interface with a rich set of options to control data analysis and plotting, including options for automatic data aggregation by subgroups, easy analysis of before-and-after data, exclusion of one or more data points from analysis, and splitting charts into sequential time periods. Missing values and empty subgroups are handled gracefully.


qicharts will no longer be maintained. Please consider moving to qicharts2: https://anhoej.github.io/qicharts2/.

Quality improvement charts

The qicharts package contains functions for plotting run charts and Shewhart control charts for measure and count data.

The main function is qic(), which in its simplest form takes a vector of values, plots a run chart, and performs tests for non-random variation in the data sequence. Non-random variation may be the result of deliberate process improvement or unintentional, possibly unwanted, changes in process performance.

qic() has a simple interface with a rich set of options to control data analysis and plotting, including options for automatic data aggregation by subgroups, easy analysis of before-and-after data, exclusion of one or more data points from analysis, and splitting charts into sequential time periods. Missing values and empty subgroups are handled gracefully.

The trc() function creates trellis run charts, i.e. small multiple run charts from multivariate data.

tcc() is an experimental function aiming at replacing trc() and, eventually, qic(). It allows for multivariate run and control charts in trellis layout.

The paretochart() function plots a pareto chart from categorical data.

For quick demos, run

example(qic)
example(trc)
example(tcc)
example(paretochart)
vignette('runcharts')
vignette('controlcharts')

Then read the help files

?qic
?trc
?tcc
?paretochart

Install latest release version of qicharts from CRAN

install.packages('qicharts')

Or install development version from GitHub

require(devtools)
install_github('anhoej/qicharts')

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("qicharts")

0.5.10 by Jacob Anhoej, 2 years ago


Browse source code at https://github.com/cran/qicharts


Authors: Jacob Anhoej [aut, cre] , Timo Roeder [ctb]


Documentation:   PDF Manual  


GPL-3 license


Imports lattice, latticeExtra, graphics, grDevices, stats, scales, ggplot2

Suggests knitr, rmarkdown


Imported by boxcoxmix.

Suggested by agridat.


See at CRAN