Description Usage Arguments Value Examples
fars_map_state(state.num,year)
returns a plot of the information loaded for a given state and year.
If the state.num
is invalid this function stops execution and prints an error message.
@importFrom dplyr filter
@importFrom maps map
1 | fars_map_state(state.num, year)
|
state.num |
is the US state number from where we will pick the information to be analized |
year |
is the selected year of the data collected desired state number and year the selected data collected from the US National Highway Traffic Safety Administration's Fatality Analysis Reporting System, which is a nationwide census providing the American public yearly data regarding fatal injuries suffered in motor vehicle traffic crashes needs to be ploted. |
a plot of the accidents for a given state and year.
1 2 3 4 5 | ## Not run:
fars_map_state()
fars_map_state("10,2014")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.