map_wind_exposure {hurricaneexposure} | R Documentation |
Map counties with wind exposure
Description
Map counties as "exposed" or "unexposed" based on the criterion that the
storm had a certain wind speed (specified by wind_limit
, in meters
per second).
Usage
map_wind_exposure(
storm,
wind_var = "vmax_sust",
wind_limit,
add_track = TRUE,
wind_source = "modeled"
)
Arguments
storm |
A character string giving the storm ID (e.g., "Floyd-1999") |
wind_var |
A character string giving the wind variable to use. Choices
are |
wind_limit |
A numeric vector of length one giving the minimum
wind speed (in meters per second) or duration of winds of 20 m / s or more
(in minutes) to use in the filter. The units of this variable will depend on
the user's choice for the |
add_track |
TRUE / FALSE of whether to add the storm's track to the map. The default is TRUE. |
wind_source |
A character string specifying the source to use for the winds. Options
are |
Value
Plots a map showing whether eastern US counties were exposed or unexposed to a specific storm based on a wind criterion.
Examples
# Ensure that data package is available before running the example.
# If it is not, see the `hurricaneexposure` package vignette for details
# on installing the required data package.
if (requireNamespace("hurricaneexposuredata", quietly = TRUE)) {
map_wind_exposure(storm = "Beryl-1988", wind_limit = 15)
}