Description Usage Arguments Details Aesthetics See Also Examples
This creates a donut chart, similar to a pie chart.
1 2 3 4 5 6 7 8 9 |
mapping |
Set of aesthetic mappings created by |
data |
The data to be displayed in this layer. There are three options: If A A |
stat |
The statistical transformation to use on the data for this layer, as a string. Should be either 'count', for the number of cases in each group, or 'identity' to represent values in the data. Default: 'count' |
title |
String title to be used for plot. Will appear in the middle of the donut, Default: NULL |
gla_theme |
Either "default" or "inverse", Default: 'default' |
base_size |
base font size, Default: 14 |
... |
Other arguments to be passed on to geom_bar() |
This works by creating a stacked bar chart and converting to polar coordinates.
ggla_donut() understands the following aesthetics (required aesthetics in bold).
y
label (will appear outside the donut)
alpha
colour
fill
group
shape
size
stroke
1 2 3 4 5 6 | ## Not run:
if(interactive()){
#EXAMPLE1
}
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.