Description Usage Arguments Value Examples
For a given state and given year, it draws the location of accidents
1 | fars_map_state(state.num, year)
|
state.num |
an integer representing state number for which the location will be drawn |
year |
a vector of years for which FARS data file will be loaded |
plots a map of the state with the accidents as dots on the map.
It throws an error if "state.num"
is not invalid. If there hasn't been
any accident in that year, it produces a message.
1 2 3 4 5 6 | ## Not run:
fars_map_state(34, 2013)
fars_map_state(34, 2014)
fars_map_state(8, 2013)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.