Description Usage Arguments Value Examples
Helper functions for handle piechart data
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | get_polygon_data(x, ...)
get_label_data(x, ...)
calc_text_angle(.angle, facing = "clockwise", nice_facing = TRUE)
filter_generate(...)
pie_label(
.label = NA,
.ratio = NA,
percent = TRUE,
digits = 2,
wrap = "(",
...
)
|
x |
a piechart data. |
... |
extra parameters passed on to |
.angle |
the angle in radians. |
facing |
one of clockwise, binding or normal. |
nice_facing |
logical value. |
.label |
character vector. |
.ratio |
numeric vector. |
percent |
logical, if TRUE will convert ratio to percent. |
digits |
integer indicating the number of decimal places. |
wrap |
symbols. |
a data frame.
1 2 3 | df <- piechart_data(mtcars, aes(value = wt))
get_polygon_data(df)
get_label_data(df)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.