Description Usage Arguments Value Examples
The function shows on the map the accidents that happened during a year
on the territory of the state.
It uses LATITUDE
and LONGITUDE
registered for each accident in FARS
to plot it on the state's map.
For more information about FARS data, see
Fatality Analysis Reporting System.
1 | fars_map_state(state.num, year)
|
state.num |
An atomic numeric value that can be coerced to a two-digit integer representing the state's code. If there is no states matching such a code, an exception is thrown. |
year |
An atomic numeric value convertible to a four-digit integer representing a year to process. |
NULL
1 2 | fars_map_state(1, year = 2015)
fars_map_state(state.num = 1, year = 2013)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.