Description Usage Arguments Value Examples
View source: R/fars_functions.R
Given a year and a state number, this functions creates an image of the state with the accidents marked. An error is given if either the state number or the year is not valid. A message is provided if there were no accidents in a paritcular state and year.
1 | fars_map_state(state.num, year)
|
state.num, |
an integer, must be less than 57. |
year, |
an integer or string coercible to an integer |
A map of the state, where accidents are marked
1 2 3 4 | ## Not run:
fars_map_state(40,2014)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.