Description Usage Arguments Value Examples
This function creates a graph of the traffic accidents that have happened during given years in given states, plotted by location over an outline of the state.
1 | fars_map_state(state.num, year)
|
state.num |
the code number of a state, which can be in any format, but should be singular |
year |
a year in which to search for traffic accidents, which can be in any format, but should be singular |
a plot with the locations of accidents in a given state in a given year, mapped over the outline of the state. if a state number does not exist or if the given state has no accidents in that year, it returns an error message.
1 2 3 4 5 | ## Not run:
fars_map_state(state.num=1,year=2013)
fars_map_state(1,2013)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.