Skip to content
Prev 164097 / 398506 Next

How to display y-axis labels in Multcomp plot

See ?par and note the 'mar' parameter

Here's an example:


library(multcomp)
labs <- c('short', 'medium', 'looooooooong')
treatment <- gl(3, 10, labels = labs)
response <- rnorm(30, mean=as.numeric(treatment))
mult <- glht(lm(response ~ treatment),
        linfct=mcp(treatment='Means'))
par(mar=c(4,8,4,2))
plot(confint(mult))

hth,

Kingsford Jones
On Mon, Dec 8, 2008 at 5:06 PM, Metconnection <simontbate at hotmail.co.uk> wrote: