fars_map_state: Map accidents

Description Usage Value Note Examples

Description

This function maps the point locations of accidents for a given state (state.num) and year.

Usage

1
fars_map_state(state.num, year)

Value

This function returns a plot with the state boundaries and the point locations of accidents.

Note

This functions throws an error if a file for a given year does not exist or if a state is not contained in the dataset.

Examples

1
2
3
4
5
6
## Not run: 
setwd(system.file("extdata", package = "fars"))
fars_map_state(24, 2014)
fars_map_state(39, 2013)

## End(Not run)

la-sch/fars documentation built on May 20, 2019, 7:31 p.m.