tau_area: Create a TauCharts area chart

Description Usage Arguments References Examples

Description

Create a TauCharts area chart

Usage

1
tau_area(tau, x, y, color = NULL)

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

References

http://api.taucharts.com/basic/bar.html, http://api.taucharts.com/basic/horizontal-bar.html

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
data(economics, package="ggplot2")
tauchart(economics) %>%
  tau_area("date", "unemploy") %>%
  tau_guide_x(tick_format="%Y")

# facets
library(dplyr)
library(tidyr)

crimes <- gather(add_rownames(USArrests, "State"), Crime, Amount, -State)
tauchart(crimes) %>%
  tau_area("State", c("Crime", "Amount"), "Crime") %>%
  tau_guide_y(auto_scale = FALSE)

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