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 Nov. 29, 2017, 7:20 p.m.