fars_map_state: Map the locations of accidents from FARS data

Description Usage Arguments Details Value Examples

View source: R/fars_function.R

Description

This function maps the locations of accidents using latitude and longitude information from the FARS data files.

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

A numeric indicating a state number.

year

A year to plot; it should be a numeric.

Details

map is utilized to draw a state map.

Value

This function makes a plot that represents locations of accidents. If there are no matches of state.num in a data set, it results in an error.

Examples

1
## Not run: fars_map_state(1, 2015)

Souravp33/RPackageBuilt documentation built on May 28, 2019, 12:58 p.m.