Description Usage Arguments Value Note Examples
This function takes year and state.num inputs and plots a map of the selected state with all accidents from that state and year.
1 | fars_map_state(state.num, year)
|
state.num |
a numeric vector of length 1 |
year |
A numeric vector of length 1 |
a plot object
This function will throw an error if the state number given is not an actual state number.
This function will return a NULL object if there are no accidents to plot.
1 2 3 4 5 | ## Not run:
fars_map_state(1, 2013)
fars_map_state(30, 2015)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.