graph_means_ci | R Documentation |
Returns ggplot of means by group with 95
graph_means_ci(
x,
group,
highlight.group = NA,
codes = c("none", "print", "caption"),
type = c("means", "ridges", "heat"),
use.labels = T,
data
)
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. |
d<-data.frame(v=1:100, group=rep(1:2, 50))
graph_means_ci(d$v, d$group)
with(d, graph_means_ci(v, group))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.