fars_map_state: Map the location of fatal motor vehicle accidents in selected...

Description Usage Arguments Value Note

View source: R/fars_map_state.R

Description

Map the location of fatal motor vehicle accidents in selected state in the US by given year

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 invalid state number given

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


tikizu/famove documentation built on Feb. 9, 2021, 10:14 p.m.