fars_map_state: Mark the incidence location on a map

Description Usage Arguments Value References See Also Examples

View source: R/fars_map_state.R

Description

fars_map_state extracts the geometry information of each accident from fars data and plot them to the map.

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

A state number in numeric or integer format

year

A year in numeric format

Value

fars_map_state returns a map plot with each accident marked on it. It will return an error message invalid STATE number: state.num if the state.num cannot be located in the fars data. If there is no accidents found in the query, the function will return a message no accidents to plot.

References

the US National Highway Traffic Safety Administration's Fatality Analysis Reporting System. https://www.nhtsa.gov/Data/Fatality-Analysis-Reporting-System-(FARS)

See Also

make_filename

fars_read

Examples

1
fars_map_state(state.num = 30, year = 2013)

ChaoLiu-gk/FARS documentation built on Jan. 6, 2020, 12:43 a.m.