Learn R Programming

billboarder (version 0.5.0)

billboard-aes: Map variables on the chart

Description

Map variables on the chart

Usage

bb_aes(bb, ...)

bb_aes_string(bb, ...)

bbaes(...)

bbaes_string(...)

Value

A billboard

htmlwidget object.

Arguments

bb

A billboard htmlwidget object.

...

Mapping parameters, such as x for x-axis, y for y-axis, group for grouping variable.

Examples

Run this code
if (FALSE) {
dat <- as.data.frame(table(sample(letters[1:5], 100, TRUE)))

billboarder(data = dat) %>% 
  bb_aes(x = Var1, y = Freq) %>% 
  bb_barchart()


tab <- table(sample(letters[1:5], 100, TRUE), sample(LETTERS[1:5], 100, TRUE))
dat_group <- as.data.frame(tab)

billboarder(data = dat_group) %>% 
  bb_aes(x = Var1, y = Freq, group = "Var2") %>% 
  bb_barchart()
}

Run the code above in your browser using DataLab