Description Usage Arguments Value Examples
View source: R/fars_functions.R
This function takes a state number and set of years as input and shows an overview of fatalities on a map in that particular time period.
Uses function make_filename and fars_read from the current package. Removes coordinate outliers - longitude values greater than 900 and latitude values greater than 90 are removed.
1 | fars_map_state(state.num, year)
|
state.num |
The number of a state in the US as used in the FARS dataset Should be numeric or integer. |
year |
The year of analysis (numeric or integer) |
a graphical overview of fatalities on a map in a particular time period. Returns an error if the state or year do not exist in the data set.
1 2 3 4 5 6 7 8 | ## Not run:
fars_map_state(45, 2015)
# Results in an error
fars_map_state(45, 2016)
fars_map_state(60, 2015)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.