map_event_exposure: Map county-level exposure based on reported events

Description Usage Arguments Value Note Examples

View source: R/map_exposure.R

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

1
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.

Note

Note that flood events are not available for any year before 1996.

Examples

 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")
}

hurricaneexposure documentation built on March 26, 2020, 8 p.m.