fars_map_state: Plot accidents by year and state

Description Usage Arguments Value Note Examples

Description

This function will create a map plot of accidents in a state for one year

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

integer value representing a state in the FARS dataset (valid inputs: 1-56)

year

integer value representing the year you want accidents plotted for

Value

A map plot of accidents in one state for one year

Note

State numbers outside the valid range (see above) will throw an error

States with no accidents to plot will produce a warning message

Examples

1
2
## Not run: fars_map_state(1, 2013)
## Not run: fars_map_state(56, 2015)

gharrels/FARS_ documentation built on May 29, 2019, 3:05 a.m.