Description Usage Arguments Value Note Examples
View source: R/fars_functions.R
This function plots the state and the point where the accidents occured in a specific year.
1 | fars_map_state(state.num, year)
|
state.num |
a number which represent a state. |
year |
a number which represent a year. |
It returns a plot of state with points where the accidents occured in a specific year.
It plots the accidents which occured in latitude <= 90 and
longitude <= 900. If the argument state.num
is beyond the number of
states in the fars data then it will return that "invalid STATE number".
If there is no accident during a specific year in aspecific state then
it returns "no accidents to plot".
1 2 3 4 | ## Not run:
fars_map_state(1,2013)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.