plot_diag: Diagnostic plots

View source: R/plot_diag.R

plot_diagR Documentation

Diagnostic plots

Description

Function to plot the diagnostic of models

Usage

plot_diag(model, title = NA)

Arguments

model

Statistical model

title

Plot title

Value

plots

Examples


## Not run: 

library(inti)

lm <- aov(stemdw ~ bloque + geno*treat, data = potato)

# lm <- potato %>% lme4::lmer(stemdw ~ (1|bloque) + geno*treat, data = .)
 
plot(lm, which = 1)
plot_diag(lm)[3]

plot(lm, which = 2)
plot_diag(lm)[2]

plot(lm, which = 3)
plot_diag(lm)[4]

plot(lm, which = 4)
plot_diag(lm)[1]


## End(Not run)


inti documentation built on Sept. 11, 2024, 8:04 p.m.