Description Usage Arguments Details Value Examples
View source: R/fars_functions.R
This function plots the accident data for the specified
state
in the specified year
.
1 | fars_map_state(state.num, year)
|
state.num |
The number of a US state coerced to integer. |
year |
An integer representing the year in the FARS dataset. Non-integers are coerced to integer. |
Returns an error if there is no data for the specified state
and year
.
This function returns a plot of the accidents in a state map.
1 2 3 4 5 6 7 8 9 | ## Not run:
# Existing state, year pair
fars_map_state(1, 2013)
# Non-existing state or year
fars_map_state(1, 2016)
fars_map_state(100, 2013)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.