geom_hurricane: Function that builds a layer based on the specification of...

Description Usage Arguments Examples

View source: R/geom_hurricane.R

Description

Function that builds a layer based on the specification of the GeomHurricane class.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
geom_hurricane(
  mapping = NULL,
  data = NULL,
  stat = "identity",
  position = "identity",
  na.rm = FALSE,
  show.legend = NA,
  inherit.aes = TRUE,
  ...
)

Arguments

data

A dataframe containing hurricane data. Should include latitude and longitude data for the center of the hurricane as well as radii values indicating how far from the center of the hurricane certain windspeeds extend in the NE, NW, SW and SE directions.

Examples

1
2
3
4
5
6
7
8
9
  ## Not run: ggplot(data = katrina) +
               geom_hurricane(aes(x = longitude, y = latitude,
                               r_ne = ne, r_se = se, r_nw = nw, r_sw = sw,
                               fill = wind_speed, color = wind_speed)) +
               scale_color_manual(name = "Wind speed (kts)",
                                  values = c("red", "orange", "yellow")) +
               scale_fill_manual(name = "Wind speed (kts)",
                                 values = c("red", "orange", "yellow"))
## End(Not run)

rsizem2/wind-radii-geom documentation built on Dec. 31, 2020, 3:13 a.m.