Description Usage Arguments Examples
3d pie charts in ggplot2
1 2 3 4 5 |
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. |
position |
Position adjustment, either as a string, or the result of a call to a position adjustment function. |
... |
Other arguments passed on to [layer()]. These are often aesthetics, used to set an aesthetic to a fixed value, like 'colour = "red"' or 'size = 3'. They may also be parameters to the paired geom/stat. |
start_degrees |
starting angle for first pie slice (in degrees). Default: 0 |
tilt_degrees |
angle by which to tilt the pie towards the camera (in degrees). Default: 0. |
height |
height of the pie. Default: 0.1 |
darken |
fraction by which to darken colours for the side of the pie. Default: 0.15 |
camera_eye |
location of camera eye. Default: c(0, 3, 5) |
camera_look_at |
at what point is the camera looking. Default: c(0, 0, 0) |
na.rm |
If 'FALSE', the default, missing values are removed with a warning. If 'TRUE', missing values are silently removed. |
show.legend |
logical. Should this layer be included in the legends?
|
inherit.aes |
If |
1 2 3 4 5 6 7 | ## Not run:
ggplot(mtcars) +
geom_threedpie(aes(as.factor(cyl))) +
coord_equal() +
theme_minimal()
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.