Description Usage Arguments Value Note Examples
View source: R/fars_functions.R
Creates a geographical plot showing the accidents for a given year in a given state. Each accident is plotted as a single dot.
1 | fars_map_state(state.num, year)
|
state.num |
The state number which you would like displayed. |
year |
The year that you would like in the filename. |
Displays a plot (no object returned).
If the state.num argument doesn't correspond to a state within the specified data frame's STATE column, and error will be thrown.
If there are no accidents to plot for the specified state.num/year combination a message will display saying so.
1 | ## Not run: fars_map_state(42, 2015)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.