c3_donut {c3} | R Documentation |
Donut Charts
Description
Create simple Donut charts
Usage
c3_donut(c3, expand = TRUE, title = NULL, width = NULL,
show = TRUE, threshold = NULL, format = NULL, ...)
Arguments
c3 |
c3 htmlwidget object |
expand |
boolean expand segment on hover |
title |
character |
width |
integer pixels width of donut |
show |
boolean show labels |
threshold |
numeric proportion of segment to hide label |
format |
character label js function, wrap character or character vector in JS() |
... |
additional values passed to the donut label object |
Value
c3
Examples
data.frame(red=20,green=45,blue=10) %>%
c3() %>%
c3_donut(title = 'Colors')
[Package c3 version 0.3.0 Index]