graph_means_ci: Graph means w/CIs

graph_means_ciR Documentation

Graph means w/CIs

Description

Returns ggplot of means by group with 95

Usage

graph_means_ci(
  x,
  group,
  highlight.group = NA,
  codes = c("none", "print", "caption"),
  type = c("means", "ridges", "heat"),
  use.labels = T,
  data
)

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)
with(d, graph_means_ci(v, group))

MaksimRudnev/LittleHelpers documentation built on Nov. 5, 2024, 10:16 p.m.