Add a pie figure to the chart.
fig_pie(g, ..., sync = TRUE, data = NULL, inherit_asp = TRUE)
| g | An object of class |
|---|---|
| ... | Options to pass to the figure, including |
| sync | Whether to sync the axis data (align) with that
used in other figures, set to |
| data | A dataset ( |
| inherit_asp | Whether to inherit the aspects paseed to
|
df <- data.frame( label = letters[1:5], value = runif(5) ) g2(df, asp(y = value, color = label)) %>% fig_pie()