bb_bubble: Bubble property for a Billboard.js chart

View source: R/bb_utils.R

bb_bubbleR Documentation

Bubble property for a Billboard.js chart

Description

Bubble property for a Billboard.js chart

Usage

bb_bubble(bb, ...)

Arguments

bb

A billboard htmlwidget object.

...

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

Value

A billboard htmlwidget object.

Examples

billboarder() %>% 
  bb_scatterplot(
    data = iris, 
    mapping = bbaes(Sepal.Length, Sepal.Width, group = Species, size = Petal.Width)
  ) %>% 
  bb_bubble(maxR = 10)


billboarder() %>% 
  bb_scatterplot(
    data = iris, 
    mapping = bbaes(Sepal.Length, Sepal.Width, group = Species, size = Petal.Width)
  ) %>% 
  bb_bubble(maxR = JS("function(d) {return Math.sqrt(d.value.z * 20);}"))

billboarder documentation built on Sept. 29, 2023, 5:07 p.m.