Returns ggplot of means by group with 95
Arguments
- x
Variable to aggregate.
- group
Group variable. If length is 1, assumes it's a variable name in the `data`
- highlight.group
Character vector of groups make bold.
- codes
"print" or "caption"
- type
"means", "ridges", "heat"
- use.labels
Whether or not attempt to extract value labels. TRUE by default.
- data
Optional, used only if `X` or `group` have length 1.
Examples
d<-data.frame(v=1:100, group=rep(1:2, 50))
graph_means_ci(d$v, d$group)
#> Warning: Vectorized input to `element_text()` is not officially supported.
#> ℹ Results may be unexpected or may change in future versions of ggplot2.
with(d, graph_means_ci(v, group))
#> Warning: Vectorized input to `element_text()` is not officially supported.
#> ℹ Results may be unexpected or may change in future versions of ggplot2.