Description Usage Arguments Details Examples
View source: R/fars_functions.R
For a given year and US state this function plots a map with the distribution of accidents regarding fatal injuries suffered in motor vehicle traffic crashes across the state using the US Fatality Analysis Reporting System data.
1 | fars_map_state(state.num, year)
|
state.num |
integer: the number of the state from the FARS data |
year |
an R object. Must be an integer or a character vector of length 1 or more, containing any year |
The function will stop running of invalid state number was provided or no event with given conditions were found
1 | fars_map_state(1, 2013)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.