fars_map_state: Map the Accidents for a State

Description Usage Arguments Details Value Examples

Description

This function maps the accidents for a given state (represented by state.num) and year onto a map of that state.

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

An integer representing the state of interest

year

An integer representing the year of interest

Details

The function checks that the state is a valid state in the data set.

If there are no accidents, no plot is produced.

Value

This function returns a map object got a given state, with the accident locations plotted on it

Examples

1
2
3
4
5
6
## Not run: 
fars_map_state(12,2015)
fars_map_state(21,2007)
fars_summarize_years(87,"aaa")

## End(Not run)

JamasEnright/FARS documentation built on May 7, 2019, 10:19 a.m.