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

Description Usage Arguments Value Examples

View source: R/fars_functions.R

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

if there is no accident a massage is produced. for invalid state number error is thrown. for valid input, plots a map with accident as dots on it.

Examples

1
2
3
4
5
## Not run: 
fars_map_state (3, 2013)
fars_map_state (10, 2015)

## End(Not run)

karimsyed/buildingRPackage documentation built on May 28, 2019, 9:50 a.m.