Description Usage Arguments Aesthetics Examples
geom_coxcomb draws the type of glyph commonly called a coxcomb plot or polar area plot, popularized by Florence Nightingale.
1 2 |
mapping |
The aesthetic mapping, usually constructed with
|
data |
A layer specific dataset - only needed if you want to override the plot defaults |
stat |
The statistical transformation to use for this layer. |
position |
The position adjustment to use for overlapping points in this layer |
npoints |
the number of points to use when drawing the arcs with line segments. Defaults to 10. |
na.rm |
If FALSE (the default), removes missing values with a warning. If TRUE, silently removes missing variables. |
... |
other arguments passed on to |
geom_coxcomb understands the following aesthetics: x, y, colour, fill, size, linetype, weight, and alpha.
1 2 3 4 5 6 7 | library(ggplot2)
## Coxcombs in an embedded plot
ggplot(casualties) +
# map_afghanistan +
geom_subplot2d(aes(lon, lat,
subplot = geom_coxcomb(aes(angle = month, fill = month))), bins = c(15, 12), ref = NULL) +
coord_quickmap()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.