map_distance_exposure: Map counties with distance exposure

Description Usage Arguments Value Examples

View source: R/map_exposure.R

Description

Map counties as "exposed" or "unexposed" based on the criterion that the storm came within a given distance (specified by dist_limit) of the county's population mean center.

Usage

1
map_distance_exposure(storm, dist_limit, add_track = TRUE)

Arguments

storm

Character string giving the name of the storm to plot (e.g., "Floyd-1999")

dist_limit

Maximum distance, in kilometers, of how close the storm track must come to the county's population mean center to classify the county as "exposed" to the storm.

add_track

TRUE / FALSE of whether to add the storm's track to the map. The default is TRUE.

Value

Plots a map showing whether eastern US counties were exposed or unexposed to a specific storm based on a distance criterion.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
# 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)) {


floyd_map <- map_distance_exposure(storm = "Floyd-1999", dist_limit = 75)
floyd_map

allison_map <- map_distance_exposure(storm = "Allison-2001",
                                     dist_limit = 75)
map_tracks("Allison-2001", plot_points = FALSE, plot_object = allison_map)
}

geanders/hurricaneexposure documentation built on Feb. 16, 2020, 8:19 a.m.