fars_map_state: Map FARS accident locations data for a specified US state and...

Description Usage Arguments Details Value Examples

View source: R/fars_functions.R

Description

Function that plots location data for a US state and year specified by the arguments state.num and year.

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

Number of the state for which to extract data. Only

year

Year to be included in the file name

Details

fars_map_state is built on the fars_read and make_filename functions.

Value

This function returns a map plot created with map, displaying location information for the selected US state and year. The function returns an error it the state.num or year are not valid or if there are no observations for the chosen state.num and year.

Examples

1
2
3
4
## Not run: 
fars_map_state(28,2014)

## End(Not run)

ajsarradin/farsAJS documentation built on May 5, 2019, 8:17 a.m.