Description Usage Arguments Details Value Examples
fars_map_state
maps state motor vehicle fatalities given a year and
state id number.
1 | fars_map_state(state.num, year)
|
state.num |
is a numerical code for US state. |
year |
as an integer |
This function takes a state number and a year, and draws a state outline with dots to represent the location of motor vehicle fatalities for that year. An error message will be displayed if an invalid state number is chosen or the chosen year's data does not exist.
It require to load maps library (which will load also all the dependacies:mapproj, mapdata, sp, maptools,rnaturalearth) It require to load also the graphics library with it's dependacies
plot of Selected US STATE with all the fatalities in the graphic window
1 2 3 4 | ## Not run:
fars_map_state(12, 2014)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.