Map variables on the chart
Note
bb_aes
is intended to use in a "piping" way.
bbaes
is the equivalent to use inside a helper function
such as bb_barchart
, bb_scatterplot
...
Examples
if (FALSE) { # \dontrun{
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()
} # }