Description Usage Arguments Value Note Examples
View source: R/fars_functions.R
Select a state and a year and draw the map of the states and overlay the locations of accidents
1 | fars_map_state(state.num, year)
|
state.num |
a number designating a state |
year |
a numeric value indicating the year |
the function does not return anything. It plots a map if the input are in the expected range.
If the state number used as input does not exist in the data set, the function will throw an error indicating the selection was not valid. If for the chosen combination of state and year there are no accidents the function will display a message informing there are no accidents to plot.
1 2 3 4 | ## Not run:
fars_map_state(state.num = 1, year = 2013)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.