fars_map_state: Plot a map showing all accidents in a given state and year

Description Usage Arguments Details Value Examples

Description

This function plots a map with all the accident recorded in the given state and year, when the state number and year are provided.

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

an integer

year

an integer

Details

If the provided state number does not exist in the data for the given year, the function returns an error message.

If there are no accidents in a given state and year, the function returns an error message.

Value

This function returns a graphical object containing locations of accidents.

Examples

1
2
3
4
## Not run: 
fars_map_state(16, 2017)

## End(Not run)

VeerlevanLeemput/fars documentation built on May 24, 2019, 7:21 p.m.