fars_map_state: Plots the noted accidents on a map of the US by state

Description Usage Value Examples

Description

This function takes the numeric identifier of each state from our source data files and plots the accidents on a map of the United States. A stop clause exists if any of the state numbers are not unique. A warning also exists in th event that a row has 0 data points.

Usage

1
fars_map_state(state.num, year)

Value

This function returns a plotted chart of the accidents on a map. If the state or year input is invalide, and error will be given.

Examples

1
2
3
4
## Not run: 
fars_map_state(22, 2014)

## End(Not run)

ntbohl/fars documentation built on May 6, 2019, 7:19 a.m.