Description Usage Arguments Examples
View source: R/geom_hurricane.R
Function that builds a layer based on the specification of the GeomHurricane class.
1 2 3 4 5 6 7 8 9 10 |
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. |
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.