Description Usage Arguments Value Examples
This is a function that takes a particular State as an Input along with a particular Year and plots the accidents on the map of that State. It returns and error if the State provided is invalid and also returns a blank plot if there are no accidents to plot
1 | fars_map_state(state.num, year)
|
state.num |
A numeric/integer State Code
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
year |
A numeric or character value for a particular Year |
The map of accidents for the entered State and Year
1 2 3 4 | ## Not run:
fars_map_state(49,2015)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.