Skip to contents

Helper for creating a donut chart

Usage

bb_donutchart(bb, data, mapping = NULL, ...)

Arguments

bb

A `billboard` `htmlwidget` object.

data

A `data.frame`.

mapping

Mapping of variables on the chart, see [bbaes()].

...

Arguments for slot donut, <https://naver.github.io/billboard.js/release/latest/doc/Options.html#.donut>.

Value

A `billboard` `htmlwidget` object.

Note

This function can be used with [billboarderProxy()] in Shiny applications.

Examples

if (FALSE) { # \dontrun{
stars <- data.frame(
  package = c("billboarder", "ggiraph", "officer", "shinyWidgets", "visNetwork"),
  stars = c(9, 177, 43, 44, 169)
)

billboarder() %>%
  bb_donutchart(data = stars, title = "Stars")
} # }