fars_map_state: Plot state accidents

Description Usage Arguments Value Examples

Description

Draws a map with all the accidents in an specific USA state and year. If there are no accidents for the data selected the function doesn't plot anything and a message is shown in the console.

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

a number of a US state either as a number or character string. If the estate number provided is not a valid state number the function throws an error.

year

four digit year either as a number or character string

Value

this function doesn't return anything. A map is drawn.

Examples

1
2
3
4
## Not run: 
fars_map_state(20, 2013)

## End(Not run)

MartinPons/fars documentation built on May 7, 2019, 3:38 p.m.