Description Usage Arguments Value Note Examples
View source: R/fars_functions.R
Creates a map of fatal car accidents in a given state.
1 | fars_map_state(state.num, year)
|
state.num |
The numerical number representing the state you would like to plot. |
year |
The year of which you would like to plot accidents from. |
returns a map of the requested state with dots representing each accident.
Will return an error if given an invalid state number.
Will return an error if a year with no data is given.
Will return a message saying "no accidents to plot" if there were no accidents in the state in the year requested.
1 2 | ## Not run: fars_map_state(10, 2013)
## Not run: fars_map_state(36, 2014)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.