Description Usage Arguments Note Examples
View source: R/fars_functions.R
Draws a map of the specified state showing the reported accidents coordinates for the given year
1 | fars_map_state(state.num, year)
|
state.num |
A single integer value representing the state code |
year |
A single positive integer value representing the year of interest |
Throws an error if the state number isn't valid or if there are no accidents to plot. Also doesn't work if provided parameters are vectors.
1 2 3 4 5 6 7 8 | ## Not run:
fars_map_state(1, 2013)
# Doesn't work
fars_map_state(c(1,2), c(2013,2014))
fars_map_state(c(1,2), 2013)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.