fars_map_state: Displays the data in a year file on the map of the...

Description Usage Arguments Value Examples

View source: R/fars_functions.R

Description

This function reads every accident file for which the year is provided as input and displays a state map (state provided as input) with the accidents of that years.

Usage

1
fars_map_state(state.num, year)

Arguments

year

The year for which the accident data is to be displayed.

state.num

The state for which the accident data is to be displayed. The value provided must be an integer representing a state as found in the accident data file.

Value

A plot of the statement with the accidents of that years.

Examples

1
2
3
4
## Not run: 
fars_map_state(13,2014)

## End(Not run)

gticket/buildingRPackages documentation built on May 17, 2019, 8:57 a.m.