Description Usage Arguments Value Source Examples
This function takes a state number and a given year in YYYY format and displays a geogrphical map of fatalities accross the state for that year
1 | fars_map_state(state.num, year)
|
state.num |
A numeric value from 1 to 51 that represents each of the states and DC |
year |
A specific year in YYYY format |
A geographic map of the state with points representing fatalities during that year
The data used is from the US National Highway Traffic Safety Administration's Fatality Analysis Reporting System (FARS), which is a nationwide census providing the American public yearly data regarding fatal injuries suffered in motor vehicle traffic crashes.
1 2 3 4 5 | ## Not run:
fars_map_state(24, 2014)
fars_map_state(51, 2015)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.