fars_map_state: Create a map of accidents in a given state in a given year

Description Usage Arguments Value Note Examples

Description

This is a function that read an accident files for a given year and plots a map showing accident locations for a given state in that year.

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

An integer corresponding to a state number in the maps package

year

A character string or integer indicating a year

Value

This function produced a plot, if there are accidents to plot in that state in that year

Note

If there are no accidents to plot in that state in that year, the function issues a warning. If the state number does not correspond to a state in the accident data file the function produces an error.

Examples

1
## Not run: fars_map_state(12,2014)

milandv/courserafars documentation built on May 26, 2019, 6:36 a.m.