Description Usage Arguments Value Note Examples
This function will create a map plot of accidents in a state for one year
1 | fars_map_state(state.num, year)
|
state.num |
integer value representing a state in the FARS dataset (valid inputs: 1-56) |
year |
integer value representing the year you want accidents plotted for |
A map plot of accidents in one state for one year
State numbers outside the valid range (see above) will throw an error
States with no accidents to plot will produce a warning message
1 2 | ## Not run: fars_map_state(1, 2013)
## Not run: fars_map_state(56, 2015)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.