Learn R Programming

billboarder (version 0.5.2)

bb_treemap: Treemap property for a Billboard.js chart

Description

Treemap property for a Billboard.js chart

Usage

bb_treemap(bb, ...)

Value

A `billboard` `htmlwidget` object.

Arguments

bb

A `billboard` `htmlwidget` object.

...

See <https://naver.github.io/billboard.js/release/latest/doc/Options.html#.treemap>

Examples

Run this code
library("billboarder")
data("mpg", package = "ggplot2")

billboarder() %>%
  bb_treemapchart(mpg[, 1]) %>%
  bb_treemap(label = list(show = TRUE, threshold = 0.03)) %>%
  bb_data(
    labels = list(colors = "#FFF")
  )

Run the code above in your browser using DataLab