Description Usage Arguments Value Examples
View source: R/fars_functions.R
This functions plots the fatal vehicles crashes location of a given year on a state map of a given state. If no crashes happened in a given year/state, the function returns a message saying that there is no accident to plot.
1 | fars_map_state(state.num, year)
|
state.num |
numeric. The US state to be plot. |
year |
character. The year for which the function will plot the accident. |
A plot showing where the accident happened for a given state in a given year.
1 | fars_map_state(28,2013)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.