fars_map_state: fars_map_state

Description Usage Arguments Value Examples

View source: R/fars_functions.R

Description

plot the location of accidents on any state map. If the state code is invalid, an error message will indicate that. No plot will be generated if there is no accident for the state of interest during the year(s) of interest. Instead, a message will show "no accident to plot". maps and dplyr need to be imported for this function.

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

numeric code representing state

year

year of interest

Value

a state map with the locations of accidents marked as dots

Examples

1
2
3
4
## Not run: 
fars_map_state(12, 2015)

## End(Not run)

jye56/funcFARS documentation built on May 18, 2019, 8:12 p.m.