Description Usage Arguments Value Note Examples
Draws a map of where the incidents of a given year occurred, based on the data of longitude and latitude present in the FARS data. FARS is US National Highway Traffic Safety Administration's Fatality Analysis Reporting System, which is a nationwide census providing the American public yearly data regarding fatal injuries suffered in motor vehicle traffic crashes.
1 | fars_map_state(state.num, year)
|
state.num |
A numeric value with the state number to analyse. Must be present in FARS data |
year |
A numeric representing the year in 4 digits format YYYY. Must be present in FARS data |
NULL. The function plots a map with points marking accidents
the function stops if state.num is not present in FARS data.
1 2 3 4 5 | ## Not run:
fars_map_state(1,2013)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.