Description Usage Arguments Value Examples
View source: R/fars_functions.R
plot the location of accidents on any state map. If the state code is invalid, an error message will indicate that. No plot will be generated if there is no accident for the state of interest during the year(s) of interest. Instead, a message will show "no accident to plot". maps and dplyr need to be imported for this function.
1 | fars_map_state(state.num, year)
|
state.num |
numeric code representing state |
year |
year of interest |
a state map with the locations of accidents marked as dots
1 2 3 4 | ## Not run:
fars_map_state(12, 2015)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.