Description Usage Arguments Note Examples
View source: R/fars_functions.R
This function takes a state number and year, and plots the location of each occurence during that year and on that state on a map using the maps::map function.
1 | fars_map_state(state.num, year)
|
state.num |
A number for the state. |
year |
A number. |
The functions is stopped and an error is returned if the file containing that year's data cannot be read, or if the state's number is invalid.
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.