fars_map_state: Create map of Fatality Analysis Reporting System data

Description Usage Arguments Value Note Examples

View source: R/fars_map_state.R

Description

The function plots the data from a selected year and state on a map.

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

Number of state

year

A year of the data to plot

Value

The function returns a plot with map of a state and the accidents place from the selected year.

Note

The files should be named 'accident_year.csv.bz2' otherwise the function will return an error.

Examples

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

## End(Not run)

a7n7k7a7/farsData documentation built on May 28, 2019, 3:57 p.m.