Description Usage Arguments Value Note Examples
Function fars_map_state
plots the locations of accidents of a state
in a specific year by longtitude and latitude.
1 | fars_map_state(state.num, year)
|
state.num |
an indentified number of state. |
year |
a year corresponding to the data |
Function fars_map_state
returns a graphic plots the locations of accidents
within a state in a year, by LONGITU
and LATITUDE
.
If state.num
is not integer, it would be transformed to as.integer
.
If state.num
does not exist in the data, it would be reported.
If the location of a accident is NA
, it would not be plotted in the map
If year
is not integer, it would be transfered to as.integer
.
1 2 | ## Not run: fars_map_state(1,2015)
## Not run: fars_map_state(2, 2016)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.