ggplot implementation for the Daniel probability plot

gg_daniel(tb, alpha = 0.05)

Arguments

tb

a data frame containing the output of the table2kunrep function

alpha

significance level for Lenth's method

Value

the Daniel probability plot.

Examples

# \donttest{
library(planex)
library(tidyverse)

data(filtragem)

filtragem <- filtragem %>%
  mutate_at(
    c("temperatura", "pressao", "concentracao", "agitacao"),
    as.factor2k) %>%
  rename(
    A = temperatura,
    B = pressao,
    C = concentracao,
    D = agitacao
  )

mod <- lm(filtragem ~ A*B*C*D, data=filtragem)
tb <- table2kunrep(mod)
gg_daniel(tb)
#> Registered S3 method overwritten by 'DoE.base':
#>   method           from       
#>   factorize.factor conf.design

# }