Description Usage Arguments Value Note Examples
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.
1 | map_event_exposure(storm_id, event_type, add_track = TRUE)
|
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. |
A map showing whether eastern US counties were exposed or unexposed to a specific storm based on event listings.
Note that flood events are not available for any year before 1996.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | # 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")
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.