fars_map_state: Graphing Accident Distribution of a State

Description Usage Arguments Value Examples

View source: R/fars_function.R

Description

Graphs a distribution of the number of accidents in a designated state and year by dots on the state's map. Throws an error if the given state number is invalid, and does not graph (returns NULL) if there is no accident in the data to plot.

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

The state number given by FARS guide.

year

The year the user desires to aquire

Value

A map of the state with dots on it representing the number of accidents given the year.

Examples

1
## Not run: fars_map_state(1,2013)

mykoCheng/farsManipulate documentation built on May 5, 2019, 9:20 a.m.