bb_treemapchart | R Documentation |
Helper for creating a treemap chart
bb_treemapchart(bb, data, mapping = NULL, ...)
bb |
A |
data |
A |
mapping |
Mapping of variables on the chart, see |
... |
Arguments passed to |
A billboard
htmlwidget
object.
library("billboarder")
data("mpg", package = "ggplot2")
billboarder() %>%
bb_treemapchart(mpg[, 1])
billboarder() %>%
bb_treemapchart(
data = mpg,
mapping = aes(x = manufacturer),
label = list(show = TRUE, threshold = 0.3)
) %>%
bb_data(
labels = list(colors = "#FFF")
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.