fars_map_state: Fars Map State

Description Usage Arguments Value Note Examples

View source: R/fars_functions.R

Description

Creates a map of fatal car accidents in a given state.

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

The numerical number representing the state you would like to plot.

year

The year of which you would like to plot accidents from.

Value

returns a map of the requested state with dots representing each accident.

Note

Will return an error if given an invalid state number.

Will return an error if a year with no data is given.

Will return a message saying "no accidents to plot" if there were no accidents in the state in the year requested.

Examples

1
2
## Not run: fars_map_state(10, 2013)
## Not run: fars_map_state(36, 2014)

JamesFrech/PeerReviewProjectWeek4 documentation built on Jan. 30, 2021, 1:27 p.m.