luca-scr / qcc

An R package for Quality Control Charts
https://luca-scr.github.io/qcc/
43 stars 17 forks source link

process.capability S3 example for plot #36

Open ellis-geoff opened 2 years ago

ellis-geoff commented 2 years ago

The end effect I'm looking to achieve is simply set a fill color for the histogram boxes..

I have been unable to figure out how to set the fill color through par, qcc.options or process.capability arguments. The help doc seems to imply there is a way to use the S3 method with plot but I have not been able to make that work. And it's not part of the current examples anymore ...also the current examples to work either errors on gcc.groups ( older version had example using plot too )

S3 method for process.capability

plot(x, add.stats = qcc.options("add.stats"), breaks = "scott", col = adjustcolor(qcc.options("zones")$fill, alpha.f = 0.5), border = "white", digits = getOption("digits"), restore.par = TRUE, …)

############################################################################ sessionInfo()

R version 4.0.2 (2020-06-22) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 10 x64 (build 19044)

Matrix products: default

locale: [1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C
[5] LC_TIME=English_United States.1252

attached base packages: [1] stats graphics grDevices utils datasets methods base

other attached packages: [1] qcc_2.7 RevoUtils_11.0.2 RevoUtilsMath_11.0.0