b_donut: Add donut

Description Usage Arguments Examples

Description

Add a donut (chart).

Usage

1
2
b_donut(p, serie, label = list(), expand = TRUE, width = NULL,
  title = "", pad.angle = 0)

Arguments

p

an object of class billboard.

serie

name of serie to plot.

label

label parameters as list.

expand

set to expand on hover.

width

width of donut.

title

donut title

pad.angle

set padding between data.

Examples

1
2
3
4
5
6
7
library(dplyr)

mtcars %>%
  mutate(model = rownames(.)) %>%
  slice(1:5) %>%
  b_board(model) %>%
  b_donut(mpg)

JohnCoene/billboard documentation built on May 14, 2019, 2:39 p.m.