ggcaterpillar | R Documentation |
Caterpillar plots for random effects models using ggplot
.
ggcaterpillar(re, qq = TRUE, likeDotplot = TRUE)
re |
random effects from lmer object |
qq |
if |
likeDotplot |
if |
Behaves like qqmath
and
dotplot
from the lattice package; also handles
models with multiple correlated random effects
library('lme4')
fit <- lmer(Reaction ~ Days + (Days | Subject), data = sleepstudy)
ggcaterpillar(ranef(fit, condVar = TRUE))
## compare (requires lattice package)
lattice::qqmath(ranef(fit, condVar = TRUE))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.