Description Usage Arguments Value Note
View source: R/fars_map_state.R
Map the location of fatal motor vehicle accidents in selected state in the US by given year
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 invalid state number given
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.