Description Usage Arguments Details Value Note References
Plot of accidents by geographic location
1 | fars_map_state(state.num, year)
|
state.num |
The desired state field which becomes an integer input. |
year |
The desired year field which becomes an integer input. |
Uses the function make_filename and fars_read. If no data is available, a message is issued.
Returns a rendered state map based on a selected dataframe with the geographic data point of an accident.
This function uses the map and graphics functions.
For a list of state numbers, reference https://crashstats.nhtsa.dot.gov/Api/Public/ViewPublication/812449
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.