Description Usage Arguments Value
View source: R/hurricane_geocode.R
This function's primary purpose is to transform hurricane data
(longitude/latitude of eye and distance of wind speeds) into a set of points
outlining an arc for each provided wind speed while preserving the
actual longitude and latitude of where the winds radius would reach.
The bulk of the work is done by functions from the geosphere
package
to code the distance to proper spacial coordinates. While generating points
with this function may be interesting, its true purpose is to support data
transforms necessary for geom_hurricane
.
1 2 3 | hurricane_geocode(storm_data, x = "longitude", y = "latitude",
r = "wind_radius", quadrant = "quadrant", wind_speed = "wind_speed",
arcRes = 1)
|
storm_data |
This input is a transformed set of data from the Colorado
State compilation of NHC data. The data must have been run through the
|
x |
This should be the column name of the longitudinal coordinate of the eye of the hurricanes. |
y |
This should be the column name of the latitudinal coordinate of the eye of the hurricanes. |
r |
This is the name of the column that holds the farthest distance for which the wind speed was recorded. |
quadrant |
This is the name of the column containing the names of the spatial quadrants on a map. Currently only ne, se, sw, and nw are acceptable entries. |
wind_speed |
This is the name of the column containing the speeds of wind
for which measuments exist. There is an important implicit assumption that
faster winds will ALWAYS have a smaller |
arcRes |
This specifies the number of angular degrees (as in degrees of a circle not of a longitude nor latitude coord) between each point. Lower numbers produce more points, and smoother curves when put on a map. |
A data.frame, tibble per dplyr
package.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.