Description Usage Arguments Value Examples
This function takes two arguments State Number state.num
and Year year
and draws a map with a point
pr. observation. It throws an error if state.num and/or year is not the dataset.
It returns NULL if no observations to plot.
The function uses the previously defined functions make_filename and fars_read.
1 | fars_map_state(state.num, year)
|
state.num |
Integer. The state identifier |
year |
Numeric. Year of the FARS data |
A map
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.