Description Usage Arguments Value Note Examples
View source: R/fars_functions.R
fars_map_state represents geographically the values in a given year and a given state number which have a longitude > 900 and a latitude > 90. It will thrown an error if the year or the state are not valid, or if there are no accidents to show.
1 | fars_map_state(state.num, year)
|
state.num |
the number of the selected state |
year |
the selected year |
The function returns a graphic showing the geographical representation of the data for a given year and a given state.
The original function has been adapted to Non-standard evaluation. For example, the filter function below has been modified to filter_
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.