| fortify-multcomp {ggplot2} | R Documentation |
Fortify methods for objects produced by multcomp
Description
This function is deprecated because using broom::tidy() is a better
solution to convert model objects.
Usage
## S3 method for class 'glht'
fortify(model, data, ...)
## S3 method for class 'confint.glht'
fortify(model, data, ...)
## S3 method for class 'summary.glht'
fortify(model, data, ...)
## S3 method for class 'cld'
fortify(model, data, ...)
Arguments
model |
an object of class |
data, ... |
other arguments to the generic ignored in this method. |
Examples
amod <- aov(breaks ~ wool + tension, data = warpbreaks)
wht <- multcomp::glht(amod, linfct = multcomp::mcp(tension = "Tukey"))
tidy(wht) # recommended
fortify(wht)
ggplot(tidy(wht), aes(contrast, estimate)) + geom_point()
ci <- confint(wht)
tidy(ci) # recommended
fortify(ci)
ggplot(tidy(confint(wht)),
aes(contrast, estimate, ymin = conf.low, ymax = conf.high)) +
geom_pointrange()
smry <- summary(wht)
tidy(smry) # recommended
fortify(smry)
ggplot(mapping = aes(contrast, estimate)) +
geom_linerange(aes(ymin = conf.low, ymax = conf.high), data = tidy(ci)) +
geom_point(aes(size = adj.p.value), data = tidy(smry)) +
scale_size(transform = "reverse")
cld <- multcomp::cld(wht)
tidy(cld) # recommended
fortify(cld)
[Package ggplot2 version 4.0.1 Index]