map_flood: Function maps data, either by gage or by county

Description Usage Arguments Value Examples

View source: R/map_results.R

Description

Displays a state or multi-state map summarizing flood analysis results either by gage or county.

Usage

1
map_flood(flood_stats, category = "minor")

Arguments

flood_stats

Either a data frame of flood analysis results, by gage or by county, or a list of both data frames.

category

Character string of the flood magnitude category to be used for mapping (one of "minor", "moderate", "major", or "extreme"). This parameter only works when mapping county-level, rather than gage-level, values.

Value

A map of the state(s) analyzed showing counties and gages color coded based on flood magnitude, depending on the type of data in flood_stats. Gage flood thresholds are "None" (flood_ratio < 1), "Minor" (flood_ratio < 1.5), "Moderate" (flood_ratio < 2), "Major" (flood_ratio < 5), and "Extreme" (flood_ratio > 5). For county aggregate maps, flood exposure is assessed based on the percentage of gages in the county at or above a specified flood threshold. Exposure categories include "Low" (0 (40

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
## Not run: 
#Use Q2 as flood threshold and get get gage-level output
va_floods <- run_flood(state = "Virginia", start_date = "2015-01-01",
                      end_date = "2015-12-31", threshold = "Q2", output = "gage")
#Map results by gage
map_flood(va_floods)


#Use NWS flood thresholds and get county-level output
va_floods <- run_flood(state = "Virginia", start_date = "2015-01-01",
                      end_date = "2015-12-31", threshold = "NWS", flood_type = "action",
                      output = "county")
#Map results by county
map_flood(va_floods)

## End(Not run)

countyfloods documentation built on Nov. 17, 2017, 5:15 a.m.