fars_map_state: Plot of accidents by geographic location

Description Usage Arguments Details Value Note References

View source: R/fars_project.R

Description

Plot of accidents by geographic location

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

The desired state field which becomes an integer input.

year

The desired year field which becomes an integer input.

Details

Uses the function make_filename and fars_read. If no data is available, a message is issued.

Value

Returns a rendered state map based on a selected dataframe with the geographic data point of an accident.

Note

This function uses the map and graphics functions.

References

For a list of state numbers, reference https://crashstats.nhtsa.dot.gov/Api/Public/ViewPublication/812449


cowboy2718/FARS documentation built on May 17, 2019, 7:01 p.m.