tufte_grouped_bar_chart: Create a Tufte-style grouped bar chart

Description Usage Arguments Value

Description

Create a Tufte-style grouped bar chart

Usage

1
2
3
4
tufte_grouped_bar_chart(df, ybreaks = 0, x_var, y_var, group,
  theme_tufte_opts = list(base_size = 36, ticks = T),
  geom_bar_opts = list(postition = "dodge", stat = "identity", width = 0.25),
  ...)

Arguments

df

A data frame containing the data to be plotted

ybreaks

A vector determining where the y-axis breaks are.

x_var,

y_var Characters that name the columns of df to be used for the x and y variables, respectively.

group

Character that determines which column of df to group by.

theme_tufte_opts

Arguments to be passed to ggthemes::theme_tufte

geom_bar_opts

Arguments to be passed to ggplot2::geom_bar

Value

A ggplot object


johnchower/glootility documentation built on May 19, 2019, 3:03 p.m.