Skip to contents

The plot() method for the modelbased::estimate_contrasts() function.

Usage

# S3 method for see_estimate_contrasts
plot(x, data = NULL, ...)

Arguments

x

An object.

data

The original data used to create this object. Can be a statistical model.

...

Arguments passed to or from other methods.

Value

A ggplot2-object.

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 `at = c("Species")`.
plot(contrasts, means)

# }