map_event_exposure {hurricaneexposure} | R Documentation |
Map county-level exposure based on reported events
Description
Map counties as "exposed" or "unexposed" based on the criterion that the county
had an event listing of a specified type in the NOAA Storm Events database.
For more information on the underlying data, see the helpfile for the
storm_events
dataset.
Usage
map_event_exposure(storm_id, event_type, add_track = TRUE)
Arguments
storm_id |
Character vector with the storm for which to map events
(e.g., |
event_type |
Character string with the type of event to use to identify
county exposures. Options include |
add_track |
TRUE / FALSE of whether to add the storm's track to the map. The default is TRUE. |
Value
A map showing whether eastern US counties were exposed or unexposed to a specific storm based on event listings.
Note
Note that flood events are not available for any year before 1996.
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_event_exposure(storm_id = "Floyd-1999", event_type = "flood")
map_event_exposure(storm_id = "Floyd-1999", event_type = "tornado")
map_event_exposure(storm_id = "Floyd-1999", event_type = "wind")
map_event_exposure(storm_id = "Floyd-1999", event_type = "tropical_storm")
map_event_exposure(storm_id = "Florence-2018", event_type = "flood")
map_event_exposure(storm_id = "Florence-2018", event_type = "tropical_storm")
map_event_exposure(storm_id = "Michael-2018", event_type = "wind")
map_event_exposure(storm_id = "Michael-2018", event_type = "tropical_storm")
}
[Package hurricaneexposure version 0.1.1 Index]