Description Usage Arguments Details Value Examples
Function for plotting an states accidentes map for given a state & year
1 | fars_map_state(state.num, year)
|
state.num |
an integer value, describing the the stateid of the data set which is needed. The valid states which can be used are between |
year |
an integer value, describing the year of the data set which is needed. The valid years which can be used are: |
This function using the packages: readr, dplyr, maps.
If an invalid year will be supplied to the function then show an error message.
If an invalid state id will be supplid the the function show tn error message.
The bounderies of longitud & latitude are below 900 & 90 respectivly.
a ggplot object
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.