Description Usage Arguments Value Note Examples
View source: R/fars_functions.R
This function plots the location of accidents in a given state for a given year, using data read from the FARS database.
1 | fars_map_state(state.num, year)
|
state.num |
The state to be plotted, as an integer. You can lookup the state codes in the FARS code book. |
year |
The year of interest |
None
This function will fail on invalid states or years, and will create an empty plot if no accidents were found.
1 2 3 4 | ## Not run:
fars_map_state(1, 2015)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.