Description Usage Arguments Examples
View source: R/fars_functions.R
fars_map_state
plots the accidents in a state for a given year. The
state is plotted as a map and the accidents as points on the map. Throws an
error if the state number does not exist in the data and NULL if the
accidents are zero for the given year in the specified state.
1 | fars_map_state(state.num, year)
|
state.num |
A numeric scalar. The state number of the accidents. |
year |
A numeric scalar. The year of the accidents. |
1 2 3 4 5 | ## Not run:
fars_map_state(1, 2014)
fars_map_state(5, 2014)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.