Description Usage Arguments Value Note Examples
This function takes a a specific state number and a specific year, read the file of that year and plot the location of all accident happened in that state in that year on a map.
1 | fars_map_state(state.num, year)
|
state.num |
The specific number whcih represend the state where the accidents occur. |
year |
The specific year when the accidents occur, need to be able to converted to an integer |
a graph which shows the locations of all accidents happened in a specific state in a specific year. The locations are shown in dots on the map of the state.
Error when the state number is invalid or there's no accidents in that state in that year
1 2 | ## Not run: fars_map_state(23,2013)
## Not run: fars_map_state("10","2014")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.