tau_stacked_bar: Create a TauCharts stacked bar chart (experimental)

Description Usage Arguments References Examples

Description

The API supports it but it's not documented at all

Usage

1
tau_stacked_bar(tau, x, y, color = NULL, size = NULL, horizontal = FALSE)

Arguments

tau

taucharts object

x

quoted name of data column to use for x-axis values

y

quoted name of data column to use for y-axis values

color

quoted name of data column to map color aesthetic to. NOTE that the parameter to this is what really defines the stacking.

size

quoted name of data column to make size aesthetic to

horizontal

should the bar chart be horizontal? (default: FALSE (no))

References

http://api.taucharts.com/basic/line.html

Examples

1
2
3
4
5
data(mpg, package="ggplot2")
tauchart(dplyr::count(mpg, class, drv)) %>%
  tau_stacked_bar("class", "n", "drv") %>%
  tau_guide_gridlines(FALSE, FALSE) %>%
  tau_tooltip()

hrbrmstr/taucharts documentation built on May 17, 2019, 5:14 p.m.