d3pie library is very versatile and includes a lot of options. Currently this package only wraps the configuration object. Even with this current limitation a wide range of options are available.
Currently the intention is to wrap the entire d3pie api.
You probably already guessed this bit.
pier package is intended to be as simple and lightweight as possible. As a starting point the data input must be a
data.frame with three required columns:
color. From this point most of the defaults from
d3pie are carried over. Note that all examples here have lost their interactivity.
library(pier) data <- data.frame(label = c('Environment','Education','Business','Community'), value = c(104,119,638,1250), color = RColorBrewer::brewer.pal(4, 'Spectral')) pier(data) %>% pie.size(height = 350)
data %>% pier() %>% pie.size(inner=70, outer=100, width = 500, height = 350) %>% pie.header(text='Segments', font='Impact', location='pie-center') %>% pie.subtitle(text='by Type') %>% pie.footer(text='Economic Segments using fake data.', location = 'bottom-left') %>% pie.tooltips()