Description Usage Arguments Details Value Note Examples
This function produces a drawing for a given state-year (state coded numerically) and overlays location of accidents on top of this drawing
1 | fars_map_state(state.num, year)
|
state.num |
State code, integer number |
year |
Integer number indicating a year of interest |
Uses function make_filename and fars_read from the current package. Removes coordinate outliers: longitude values greater than 900 are removed, and also latitude values greater than 90 are removed (i.e. not plotted).
This function does not return anything, it just produces a plot
Generates an error if the state number is not found in the dataset (invalid STATE number:...
). If
there are no accidents to plot, throws a message: no accidents to plot
1 | ## Not run: fars_map_state(3,2014)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.