GeomHurricane: GeomHurricane

Description Usage Format Errors Examples

Description

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).

Usage

1

Format

An object of class GeomHurricane (inherits from Geom, ggproto) of length 5.

Errors

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.

Examples

 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)

ronybsulca/rsGeoms documentation built on May 27, 2019, 1:45 p.m.