hurricaneexposure (version 0.1.0)

map_event_exposure: 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., "Katrina-2005")

event_type

Character string with the type of event to use to identify county exposures. Options include "flood", "tornado", "wind", and "tropical storm".

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.

Examples

Run this code
# NOT RUN {
# 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")
}
# }

Run the code above in your browser using DataLab