plot_pie | R Documentation |
High level constructor of pie chart using ggplot2
to display count of 1 variable.
plot_pie(
data = NULL,
var,
lump_prop = 0,
other_level = "Other",
polar_start = 0,
polar_direction = 1,
polar_clip = "on",
label_geom = c("label", "label_repel", "text", "text_repel"),
label_number = c("percent", "count", "both"),
color_label = "black",
...
)
data |
A data.frame |
var |
(Quote or Unquote) Categorical variables to plot |
lump_prop |
Proportion that lump levels to "Other" (passed to |
other_level |
Name of the "Other" level |
polar_start |
The |
polar_direction |
The |
polar_clip |
The |
label_geom |
(A Character) Indicate function of label geom
|
label_number |
(A Character) How to display the label?
|
color_label |
(A Character) Color for label |
... |
Passed to selected function of |
A Plot class gg
and ggplot
plot_pie(mtcars, cyl)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.