fars_map_state: Plot FARS fatalities for a state and year.

Description Usage Arguments Value Examples

Description

Makes a plot of Fatality Analysis Reporting System (FARS) data for a given state number and year.

Usage

1
fars_map_state(state.num, year, path = "inst/extdata")

Arguments

state.num

The integer number of the state to be plotted, from 1-56.

year

The year to be plotted

path

The path to the FARS data file to read. The default is the path to the three supplied raw data files.

Value

A maps object.

Examples

1
2
## Not run: fars_map_state(state.num = 10, year = 2014)     # Returns a map for state 10.
## Not run: fars_map_state(state.num = 100, year = 2014)     # Returns an error.

Alice-MacQueen/farsr documentation built on May 13, 2019, 11:22 a.m.