b_pie: Add pie

Description Usage Arguments Examples

Description

Add a pie chart.

Usage

1
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

1
2
3
4
5
6
7
library(dplyr)

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

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