Description Usage Arguments Value
View source: R/fars_functions.R
The function accepts a state ID and year and returns a map visualisation of the accidents. The state ID has to be an integer or numerical.
1 | fars_map_state(state.num, year)
|
state.num |
The ID of a US state as specified in the FARS data pack. |
year |
The selected year the visualisation will be based on. |
Returns a graph of the accidents based on the state.num
and
year
inputs. Returns an error if the state and/ or year do not exist in the
data set.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.