Description Usage Arguments Value Note Examples
This function gets passed a specific state and year, then gets associated data. If the state exists, it filters the data per state and plots accidents for that state.
1 | fars_map_state(state.num, year)
|
state.num |
A number indicating a state |
year |
A number indicating the year |
This function creates a graph for a specific state and year
This function returns an error if the state number is not valid
1 2 3 4 | ## Not run:
fars_map_state(state.num=1,year=2015)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.