Skip to content
Prev 1475 / 20628 Next

dotplot of ranef

Taking the example from:
?ranef

fm1 <- lmer(Reaction ~ Days + (Days|Subject), sleepstudy)
rr1 <- ranef(fm1, postVar = TRUE)
dotplot(rr1,scales = list(x = list(relation = 'free')))[["Subject"]]

How would I need to modify dotplot() to have "Subject" sorted for
"Days", rather than "(Intercept)"?

Thanks in advance.

Reinhold Kliegl