Plot single and multi-facet quality control charts within the ggplot framework using stat_QC and stat_mR. Calculate quality control limits using QC_Lines.
Methods supported:
knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "README-" )
library(ggplot2) library(ggQC) set.seed(5555) Golden_Egg_df <- data.frame(month=1:12, egg_diameter = rnorm(n = 12, mean = 1.5, sd = 0.2) ) XmR_Plot <- ggplot(Golden_Egg_df, aes(x = month, y = egg_diameter)) + geom_point() + geom_line() + stat_QC(method = "XmR") XmR_Plot
For more Information and Examples using ggQC, visit (ggQC.r-bar.net)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.