-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathREADME.Rmd
63 lines (45 loc) · 1.68 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
#Description#
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:
* **Individuals Charts** : mR, XmR
* **Attribute Charts** : c, np, p, u
* **Studentized Charts**: xBar.rBar, xBar.rMedian, xBar.sBar, xMedian.rBar, xMedian.rMedian
* **Dispersion Charts**: rBar, rMedian, sBar
#Example#
```{r, echo = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "README-"
)
```
```{r}
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
```
#Installation#
* cran: install.package("ggQC")
* github: devtools::install_github("kenithgrey/ggQC")
#Overview#
* QC_Lines(): Output quality control chart data in table format
* QC_Violations(): Check for QC Violations
* stat_QC(): ggplot stat to generate control charts supported methods
* stat_mR(): ggplot stat to generate mR chart.
* stat_QC_labels(): ggplot stat to write text labels on control chart center line and limits.
* stat_qc_violations(): ggplot stat to examine QC Violations.
* 30 plus functions to calculate specific control chart constants. (recommend using QC_Lines())
#More Examples#
For more Information and Examples using ggQC, visit
([ggQC.r-bar.net](http://ggQC.r-bar.net/index.html))