Description Usage Arguments Value Author(s) See Also Examples

Bar plots of LS-means using the ggplot2 package.

1 2 |

`x` |
an |

`y` |
not used and ignored with a warning. |

`which` |
optional character vector naming factors for which LS-means should
be plotted. If |

`mult` |
if |

`...` |
currently not used. |

generates the desired plots and invisibly returns the plot objects.

Rune Haubo B. Christensen

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | ```
# Fit example model with 2 factors:
data("cake", package="lme4")
cake$Temp <- factor(cake$temperature, ordered = FALSE)
model <- lmer(angle ~ recipe * Temp + (1|recipe:replicate), cake)
# Extract LS-means:
(lsm <- ls_means(model))
# Multi-frame plot of the LS-means
plot(lsm)
# Compute list of 'single frame' plots:
res <- plot(lsm, mult=FALSE)
# Display each plot separately:
plot(res[[1]])
plot(res[[2]])
# Example with pairwise differences of LS-means:
(lsm <- ls_means(model, pairwise = TRUE))
plot(lsm, which="Temp")
``` |

lmerTest documentation built on Oct. 23, 2020, 6:16 p.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.