Description Usage Arguments Value Examples
View source: R/fars_functions.R
This function plots the number of accidents in an input year on an input US state map.
This function returns an error message if either the state.num
or
year
do not exist in the dataset
1 | fars_map_state(state.num, year)
|
state.num |
A number representing a state in the dataset |
year |
A number representing the year in the dataset |
This function returns a plot of the number of accidents
for based on the state.num
with year
inputs.
Returns an error message if the state or year do not exist in the dataset.
1 2 3 4 | ## Not run:
fars_map_state('10',2013)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.