fars_map_state: Create map of accidents by state.

Description Usage Arguments Value Examples

Description

fars_map_state plots the geographic location of accidents for the input state and year.

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

Numeric. The state number.

year

Numeric. The relevant year.

Value

fars_map_state returns a plot of the map of the given state, as well as the geographic location of the accidents occurring in that state for the given year. If the state number does not exist, fars_map_state will throw an error. If there are no accidents in the state for the given year, fars_map_state will display a message indicating this.

Examples

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

## Not run: fars_map_state(52, 2014)

Paul-Draper/FarsDataAnalysisPD documentation built on May 23, 2019, 5:02 a.m.