Description Usage Arguments Value Note References Examples
Reads a Fatality Analysis Reporting System (FARS) file and plots a map of fatal crashes.
1 | fars_map_state(state.num, year)
|
state.num |
Two digit FARS state reference number. |
year |
Two digit year, coerced to integer. |
This function produces a plot of the fatal crashes on a map of the state.
If the state.num
provided is not in the FARS file, an error is produced.
If there are no fatal crashes for the state and year, a message is provided.
LONGITUD values > 900 are set to NA, LATITUDE values > 90 are set to NA
FARS data: https://www.nhtsa.gov/research-data/fatality-analysis-reporting-system-fars; State reference numbers: https://crashstats.nhtsa.dot.gov see publication 812296
1 | ## Not run: fars_map_state('01','2014')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.