fortify-multcomp | R Documentation |
This function is deprecated because using broom::tidy()
is a better
solution to convert model objects.
## 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, ...)
model |
an object of class |
data , ... |
other arguments to the generic ignored in this method. |
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.