Description Usage Arguments Details Value See Also Examples
View source: R/fars_functions.R
makes a map of all fatal motor vehicle accidents for a specified year and specified state.
1 | fars_map_state(state.num, year)
|
state.num |
Integer of state ID number to plot a map for. |
year |
Integer of the year to plot motor vehicle accidents from. |
Throws an error if specified state ID numbers and years are invalid. Gives a warning if there are no fatal motor vehicle accidents in a given state and year.
A map of a state with points of GPS coordinates of motor vehicle accidents from a specific year.
https://www.nhtsa.gov/Data/Fatality-Analysis-Reporting-System-(FARS)
1 | ## Not run: fars_map_state(15, 2013)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.