/spccharter

Creates multiple SPC / process behaviour charts, automatically detecting signals of process change and revising centre lines and control limits.

Primary LanguageRGNU General Public License v3.0GPL-3.0

spccharter

Project Status: Active – The project has reached a stable, usable state and is being actively developed. AppVeyor build status

R-CMD-check

The goal of spccharter is rapid analysis of multiple statistical process control charts. The package will create charts, detect signals of improvement, and revise control limits each time a signal occurs. Currently, ‘C’, ‘P’ and ‘U’ charts can be produced.

The package supports non standard evaluation - you can pass bare variable names.

Installation

spccharter is not on CRAN yet

But the development version is available on GitHub with:

# install.packages("remotes") # if not already installed
remotes::install_github("johnmackintosh/spccharter")

Example

One grouping variable:

library(spccharter)
spccharter(data, numerator = counts, datecol = date, 
           by = category_1, plot_type = 'c', direction = "both")

Two grouping variables:

library(spccharter)
spccharter(data, numerator = counts, denominator = attends, datecol = date, 
           by = c('ward','hospital'), plot_type = 'p', direction = "both")

Example plots

facet-spccharter

spc-c-chart

spc-pchart