bb_bubble | R Documentation |
Bubble property for a Billboard.js chart
bb_bubble(bb, ...)
bb |
A |
... |
See https://naver.github.io/billboard.js/release/latest/doc/Options.html#.bubble |
A billboard
htmlwidget
object.
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);}"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.