Description Usage Arguments Details Value Examples
This function plots individual FARS accidents' coordinates as points on a stat map
1 | fars_map_state(state.num, year)
|
state.num |
An |
year |
An |
The function returns an error invalid STATE number: state.num
if the provided number does not correspond to a STATE in the data of this particular year and a message no accidents to plot
if the number of accident for this year is 0.
otherwise it constructs a file name using the provided year, read the data file and plot points of individual accidents on the STATE map.
A plot of a state from map
and points correspond to the coordinates of recorded accidents.
1 2 3 4 | ## Not run:
fars_map_state(50, 2013)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.