A function that creates a pie chart.
geom_pie(mapping = NULL, data = NULL, position = "stack", ..., width = 1)
Arguments
- mapping
Aesthetics created by aes().
- data
The data used to create the plot.
- position
Set to "stack" for the pie chart.
- ...
A set of arguments passed down to geom_bar().
- width
Set to 1 for the pie chart.
Value
A ggplot from the displays the pie chart.