Description Usage Arguments Value References See Also Examples
View source: R/fars_map_state.R
fars_map_state extracts the geometry information of each accident from fars data and plot them
to the map.
1  | fars_map_state(state.num, year)
 | 
state.num | 
 A state number in numeric or integer format  | 
year | 
 A year in numeric format  | 
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.
the US National Highway Traffic Safety Administration's Fatality Analysis Reporting System. https://www.nhtsa.gov/Data/Fatality-Analysis-Reporting-System-(FARS)
1  | fars_map_state(state.num = 30, year = 2013)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.