Description Usage Arguments Details Value Depends on Examples
View source: R/fars_functions.R
This is a function that reads FARS data for specified year
and then plots it on a contour map of the state specified by state.num
1 | fars_map_state(state.num, year)
|
state.num |
numeric number from 1 to 56 that specifies the state to plot on the map |
year |
numeric number that specifies the year to read the data for |
Map of the state with dots of casualities will be ploted
This function returns a plot
filter
in the dplyr
package.
map
in the maps
package.
points
in the graphics
package.
1 2 3 4 5 | ## Not run:
fars_map_state(1, 2014)
fars_map_state("3", "2014")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.