Residual plots for a output model of class gafem. Seven types of plots are produced: (1) Residuals vs fitted, (2) normal Q-Q plot for the residuals, (3) scale-location plot (standardized residuals vs Fitted Values), (4) standardized residuals vs Factor-levels, (5) Histogram of raw residuals and (6) standardized residuals vs observation order, and (7) 1:1 line plot.

# S3 method for gafem
plot(x, ...)

Arguments

x

An object of class gafem.

...

Additional arguments passed on to the function residual_plots

Author

Tiago Olivoto tiagoolivoto@gmail.com

Examples

# \donttest{ library(metan) model <- gafem(data_g, GEN, REP, PH)
#> variable PH #> --------------------------------------------------------------------------- #> One-way ANOVA table (randomized complete block design) #> --------------------------------------------------------------------------- #> Source Df Sum Sq Mean Sq F value Pr(>F) #> REP 2 0.101 0.0507 1.55 0.2328 #> GEN 12 1.008 0.0840 2.56 0.0239 #> Residuals 24 0.786 0.0328 NA NA #> --------------------------------------------------------------------------- #> #> --------------------------------------------------------------------------- #> Variables with nonsignificant genotype effect #> #> --------------------------------------------------------------------------- #> Done!
plot(model)
plot(model, which = c(3, 5), nrow = 2, labels = TRUE, size.lab.out = 4)
# }