An Introduction to R for Quality Control

  • Emilio L. Cano
  • Javier M. Moguerza
  • Mariano Prieto Corcoba
Part of the Use R! book series (USE R)


This chapter introduces R as statistical software and programming language for quality control. The chapter is organized as a kind of tutorial with lots of examples ready to be run by the reader. Moreover, the code is available at the book’s companion website. Even though the RStudio interface is also introduced in the chapter, any other user interface can be used, including the R default GUI and code editor.


  1. 1.
    Anhoej, J.: qicharts: quality improvement charts. (2015). R package version 0.2.0
  2. 2.
    Annau, M.: h5: interface to the ‘HDF5’ library. (2015). R package version 0.9
  3. 3.
    Barbosa, E.P., Barros, F.M.M., de Jesus Goncalves, E., Recchia, D.R.: IQCC: improved quality control charts. (2014). R package version 0.6
  4. 4.
    Block, U.: Using an algorithm by Hatto von Hatzfeld: ISOweek: week of the year and weekday according to ISO 8601. (2011). R package version 0.6-2
  5. 5.
    Cano, E.L., Moguerza, J.M., Redchuk, A.: Six sigma with R. In: Statistical Engineering for Process Improvement, Use R!, vol. 36. Springer, New York (2012).
  6. 6.
    Chambers, J.M.: Software for data analysis. In: Programming with R. Statistics and Computing. Springer, Berlin (2008)CrossRefzbMATHGoogle Scholar
  7. 7.
    Chheng, T.: RMongo: MongoDB client for R. (2013). R package version 0.0.25
  8. 8.
    Ciupke, K.: Multivariate process capability vector based on one-sided model. Qual. Reliab. Eng. Int. (2014). doi: 10.1002/qre.1590. R package version 1.1Google Scholar
  9. 9.
    Conway, J., Eddelbuettel, D., Nishiyama, T., Prayaga, S.K., Tiffin, N.: RPostgreSQL: R interface to the PostgreSQL database system. (2013). R package version 0.4
  10. 10.
    Dodge, H., Romig, H.: Sampling Inspection Tables, Single and Double Sampling. Wiley, New York (1959)zbMATHGoogle Scholar
  11. 11.
    Fellows, I.: Deducer: a data analysis gui for R. J. Stat. Softw. 49(8), 1–15 (2012).
  12. 12.
    Flores, M., Naya, S., Fernandez, R.: qcr: quality control and reliability. (2014). R package version 0.1-18
  13. 13.
    Fox, J.: The R commander: a basic statistics graphical user interface to R. J. Stat. Softw. 14(9), 1–42 (2005).
  14. 14.
    Free Software Foundation, Inc.: Free Software Foundation website. (2014) [Retrieved 2014-07-10]
  15. 15.
    Godfrey, A.J.R., Govindaraju, K.: Dodge: functions for acceptance sampling ideas originated by H.F. Dodge. (2013). R package version 0.8
  16. 16.
    ISO/IEC JTC 1 – Information Technology: ISO/IEC 12207:2008, Systems and Software Engineering – Software Life Cycle Processes. ISO – International Organization for Standardization (2008).
  17. 17.
    ISO TC154 – Processes, Data Elements and Documents in Commerce, Industry and Administration: ISO 8601 Data Elements and Interchange Formats – Information Interchange – Representation of Dates and Times. ISO – International Organization for Standardization (2004)Google Scholar
  18. 18.
    ISO TC69/SCS–Secretariat: ISO 16269-4:2010 – Statistical Interpretation of Data – Part 4: Detection and Treatment of Outliers. Published Standard. (2010)
  19. 19.
    ISO TC69/SCS–Secretariat: ISO 28640:2010 – Random Variate Generation Methods. Published Standard. (2015)
  20. 20.
    Kiermeier, A.: Visualizing and assessing acceptance sampling plans: the R package AcceptanceSampling. J. Stat. Softw. 26(6) (2008).
  21. 21.
    Lang, D.T., The CRAN Team: XML: tools for parsing and generating XML within R and S-plus. (2015). R package version 3.98-1.3
  22. 22.
    Mirai Solutions GmbH: XLConnect: excel connector for R. (2015). R package version 0.2-11
  23. 23.
    Mukhin, D., James, D.A., Luciani, J.: ROracle: OCI based oracle database interface for R. (2014). R package version 1.1.12
  24. 24.
    Murrell, P.: R Graphics, 2nd edn. Chapman & HallCRC, Boca Raton (2011)zbMATHGoogle Scholar
  25. 25.
    Ooms, J., James, D., DebRoy, S., Wickham, H., Horner, J.: RMySQL: database interface and MySQL driver for R. (2015). R package version 0.10.1
  26. 26.
    R Core Team: Foreign: read data stored by minitab, S, SAS, SPSS, Stata, Systat, Weka, dBase, …. (2015). R package version 0.8-64
  27. 27.
    R Core Team: R: A Language and Environment for Statistical Computing. R Foundation for Statistical Computing, Vienna (2015).
  28. 28.
    Ripley, B., Lapsley, M.: RODBC: ODBC database access. (2015). R package version 1.3-12
  29. 29.
    Roth, T.: qualityTools: statistics in quality science. (2012). R package version 1.54
  30. 30.
    RStudio Team: RStudio: Integrated Development Environment for R. RStudio Inc., Boston, MA (2012).
  31. 31.
    Santos-Fernández, E.: Multivariate Statistical Quality Control Using R, vol. 14. Springer, Berlin (2013).
  32. 32.
    Sarkar, D.: Lattice: Multivariate Data Visualization with R. Springer, New York (2008). ISBN 978-0-387-75968-5
  33. 33.
    Scrucca, L.: qcc: an r package for quality control charting and statistical process control. R News 4/1, 11–17 (2004).
  34. 34.
    Shewhart, W.: Economic Control of Quality in Manufactured Products. Van Nostrom, New York (1931)Google Scholar
  35. 35.
    Urbanek, S.: RJDBC: provides access to databases through the JDBC interface. (2014). R package version 0.2-5
  36. 36.
    Wickham, H.: ggplot2: elegant graphics for data analysis. In: Use R! Springer, Berlin (2009)Google Scholar
  37. 37.
    Wickham, H., James, D.A., Falcon, S.: RSQLite: SQLite interface for R. (2014). R package version 1.0.0
  38. 38.
    Xie, Y.: Dynamic Documents with R and Knitr. Chapman and Hall/CRC, Boca Raton, FL (2013). ISBN 978-1482203530
  39. 39.
    Xie, Y.: knitr: a comprehensive tool for reproducible research in R. In: Stodden, V., Leisch, F., Peng, R.D. (eds.) Implementing Reproducible Computational Research. Chapman and Hall/CRC, Boca Raton (2014). ISBN 978-1466561595
  40. 40.
    Xie, Y.: knitr: a general-purpose package for dynamic report generation in R. (2015). R package version 1.10.5
  41. 41.
    Young, D.S.: tolerance: an R package for estimating tolerance intervals. J. Stat. Softw. 36(5), 1–39 (2010).

Copyright information

© Springer International Publishing Switzerland 2015

Authors and Affiliations

  • Emilio L. Cano
    • 1
    • 2
  • Javier M. Moguerza
    • 1
  • Mariano Prieto Corcoba
    • 3
  1. 1.Department of Computer Science and StatisticsRey Juan Carlos UniversityMadridSpain
  2. 2.Statistics Area, DHEPThe University of Castilla-La ManchaCiudad RealSpain
  3. 3.ENUSA Industrias AvanzadasMadridSpain

Personalised recommendations