plotGroupBars: Plot Bar Chart by Group

plotGroupBarsR Documentation

Plot Bar Chart by Group

Description

Plot Bar Chart by Group

Usage

plotGroupBars(df, groupVar, measureVar, title, label, fun = mean,
  dp = 1, mean_line = TRUE, ...)

Arguments

df

data frame or tibble.

groupVar

field name for groupping in df.

measureVar

field name of the measure in df.

title

chart's title.

label

label for measureVar.

fun

aggregate function; optional, default value is mean().

dp

number of decimal places; optional, default value is 1.

mean_line

show line of mean value; optional; default value is TRUE.

...

extra arguments go to geom_bar().

Value

a ggplot


maxleungtszchun/customerAnalytics documentation built on July 27, 2023, 9:24 a.m.