Description Usage Arguments Value
View source: R/fars_functions.R
This function requires a state number and year (numeric -or integer- both), and plots the accidents in a map. The state number must be exist in FARS dataset (error if not) and data file must exist too.
1 | fars_map_state(state.num, year)
|
state.num |
The number of a state in the US as used in the FARS data sets. Must be numeric or integer. |
year |
The year of analysis (numeric or integer) |
Returns a plot of the accidents based on the state.num
and
year
inputs. Error if not exists.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.