e_pie | R Documentation |
Draw pie and donut charts.
e_pie(e, serie, name = NULL, legend = TRUE, rm_x = TRUE, rm_y = TRUE, ...)
e_pie_(e, serie, name = NULL, legend = TRUE, rm_x = TRUE, rm_y = TRUE, ...)
e |
An |
serie |
Column name of serie to plot. |
name |
name of the serie. |
legend |
Whether to add serie to legend. |
rm_x, rm_y |
Whether to remove x and y axis, defaults to |
... |
Any other option to pass, check See Also section. |
mtcars |>
head() |>
tibble::rownames_to_column("model") |>
e_charts(model) |>
e_pie(carb)
# timeline
df <- data.frame(
grp = c("A", "A", "A", "B", "B", "B"),
labels = rep(LETTERS[1:3], 2),
values = runif(6, 1, 5)
)
df |>
group_by(grp) |>
e_charts(labels, timeline = TRUE) |>
e_pie(values)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.