Plot method for estimating contrasts
Source:R/plot.estimate_contrasts.R
plot.see_estimate_contrasts.Rd
The plot()
method for the modelbased::estimate_contrasts()
function.
Usage
# S3 method for class 'see_estimate_contrasts'
plot(x, data = NULL, ...)
Examples
# \donttest{
library(modelbased)
model <- lm(Sepal.Width ~ Species, data = iris)
contrasts <- estimate_contrasts(model)
#> No variable was specified for contrast estimation. Selecting `contrast =
#> "
#> Species
#> "`.
means <- estimate_means(model)
#> We selected `by = c("Species")`.
plot(contrasts, means)
# }