Description Usage Arguments Value Note Examples
View source: R/assignment_w2.R
Plot accidents occurred on a specific state for a given year If there is no data for a state, the function will stop and throw an error.
1 | fars_map_state(state.num, year)
|
state.num |
State number. |
year |
Year in which the accidents to be plotted occurred. |
Map with accidents plotted
This function depends on map and points functions from the maps and graphics package respectively.
1 | ## Not run: fars_map_state("1", "2013")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.