fars_map_state: Generates a map of the state outline and location of...

Description Usage Arguments Value Examples

View source: R/fars_functions.R

Description

The function checks the argument state.num and returns gracefully if the integer is outside the range of state codes. NA values are treated for the location of the accident (latitude and longitude) before generating the plot.

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

integer ID for state

year

an integer value or a value that can be ast to an integer.

Value

This function returns a map object.

Examples

1
2
3
4
5
## Not run: 
#' fars_map_state(1, 2014)
fars_map_state(40, 2015)

## End(Not run)

geogaffer/week4fars documentation built on Jan. 1, 2021, 2:18 a.m.