fars_map_state: Visualize FARS Accidents by State and Year

Description Usage Arguments Value Note Examples

Description

This function takes year and state.num inputs and plots a map of the selected state with all accidents from that state and year.

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

a numeric vector of length 1

year

A numeric vector of length 1

Value

a plot object

Note

This function will throw an error if the state number given is not an actual state number.

This function will return a NULL object if there are no accidents to plot.

Examples

1
2
3
4
5
## Not run: 
fars_map_state(1, 2013)
fars_map_state(30, 2015)

## End(Not run)

codyschulz/samplePackage2 documentation built on May 3, 2019, 9:37 p.m.