fars_map_state: For a given state and given year, it draws the location of...

Description Usage Arguments Value Examples

Description

For a given state and given year, it draws the location of accidents

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

an integer representing state number for which the location will be drawn

year

a vector of years for which FARS data file will be loaded

Value

plots a map of the state with the accidents as dots on the map. It throws an error if "state.num" is not invalid. If there hasn't been any accident in that year, it produces a message.

Examples

1
2
3
4
5
6
  ## Not run: 
    fars_map_state(34, 2013)
    fars_map_state(34, 2014)
    fars_map_state(8, 2013)
  
## End(Not run)

karimsyed/myRPackage documentation built on May 8, 2019, 3:13 a.m.