fars_map_state: Plot a map showing accident location in a state on a given...

Description Usage Arguments Value Note Examples

View source: R/fars_functions.R

Description

This function plots the location of accidents in a given state for a given year, using data read from the FARS database.

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

The state to be plotted, as an integer. You can lookup the state codes in the FARS code book.

year

The year of interest

Value

None

Note

This function will fail on invalid states or years, and will create an empty plot if no accidents were found.

Examples

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

## End(Not run)

wesen/coursera_fars documentation built on May 18, 2019, 4:52 p.m.