Add a pie chart.

b_pie(p, serie, label = list(), expand = TRUE, 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.

pad.angle

set padding between data.

Examples

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