theme_qcc: Custom theme "qcc" for the book industRial Data Science plots

Description Usage Arguments Details Value References Examples

View source: R/theme_qcc.R

Description

This theme provides a similar look and feel to the package qcc statistical process control charts (SPC) which have themselves a resemblance with Minitab charts. This theme aims at providing a layout that is familiar to readers of Minitab chart to help in reducing transition to R build reports and charts.

Usage

1
theme_qcc(base_size = 12, base_family = "")

Arguments

base_size

font size, defaults to 12

base_family

font family defaults to ""

Details

Apply this theme by adding it at the end of the code of any ggplot chart. It #' basically provides a grey background and some highlights to help reading key process statistics such as the population mean.

Value

This function returns an object of classes theme and gg from the ggplot2 package

References

For a complete case study application refer to https://j-ramalho.github.io/industRial/

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
library(dplyr)
library(ggplot2)

pet_delivery %>% 
   ggplot(aes(x = A)) +
   geom_histogram(color = "grey", fill = "grey90") +
   labs(title = "PET clothing case study",
      subtitle = "Raw data plot",
      x = "Treatment",
      y = "Tensile strength [MPa]") +
      theme_qcc()

industRial documentation built on June 11, 2021, 5:10 p.m.