Description Usage Arguments Value Examples
Displays data from the Fatality Analysis Reporting System for one year and one state on a map. make_filename
and fars_read
are used to retrieve the data. Error message is generated if the state number is not valid or there were no traffic fatalities recorded in that year and state.
1 | fars_map_state(state.num, year)
|
state.num |
Number of the state to be mapped. |
year |
Year of data to be used. Current dataset contains years 2013-2015. |
A map showing the location of the traffic fatalities recorded.
1 2 3 4 | ## Not run:
fars_map_state(33, 2013)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.