Description Usage Format Errors Examples
This Geom returns ggproto object made of a gTree of polygonGrobs. Each Grob is a circle with different radii in each circle depending on the quadrant.
The grobs are colored based on the colour
argument. There will be one grob per wind_speed, aka colour
variable. This
is a ggproto object, and thus it requires no Arguments once Created (those are found in the calling function).
1 |
An object of class GeomHurricane
(inherits from Geom
, ggproto
) of length 5.
GeomHurricane
won't be able to display the Hurricane grobs if there isn't a current ggmap
active for which this Geom will be apllied onto.
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Not run:
## Example of Creating a calling function with this Grob.
geom_hurricane <- function(mapping = NULL, data = NULL, stat = "identity",
position = "identity", na.rm = FALSE,
show.legend = NA, inherit.aes = TRUE, ...) {
ggplot2::layer(geom = GeomHurricane, mapping = mapping,
data = data, stat = stat, position = position,
show.legend = show.legend, inherit.aes = inherit.aes,
params = list(na.rm = na.rm, ...))
}
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.