knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

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



johnmackintosh/spccharter documentation built on March 16, 2023, 10:54 a.m.