bb_donutchart {billboarder}R Documentation

Helper for creating a donut chart

Description

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 application.

Examples

## 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)

[Package billboarder version 0.4.1 Index]