bb_donutchart | R Documentation |
Helper for creating a donut chart
bb_donutchart(bb, data, mapping = NULL, ...)
bb |
A |
data |
A |
mapping |
Mapping of variables on the chart, see |
... |
Arguments for slot donut, https://naver.github.io/billboard.js/release/latest/doc/Options.html#.donut. |
A billboard
htmlwidget
object.
This function can be used with billboarderProxy
in shiny application.
## Not run:
stars <- data.frame(
package = c("billboarder", "ggiraph", "officer", "shinyWidgets", "visNetwork"),
stars = c(9, 177, 43, 44, 169)
)
billboarder() %>%
bb_donutchart(data = stars, title = "Stars")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.