plot.see_estimate_contrasts: Plot method for estimating contrasts

View source: R/plot.estimate_contrasts.R

plot.see_estimate_contrastsR Documentation

Plot method for estimating contrasts

Description

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

Usage

## S3 method for class '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



library(modelbased)

model <- lm(Sepal.Width ~ Species, data = iris)
contrasts <- estimate_contrasts(model)
means <- estimate_means(model)
plot(contrasts, means)



see documentation built on Sept. 11, 2024, 5:51 p.m.