fars_map_state: Plot map

Description Usage Arguments Value Examples

View source: R/fars_functions.R

Description

This function plots a map with the locations of accidents for the selected state and year.It calls the functions make_filename and fars_read from within. T

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

A number representing the FARS code of the desired state. This function returns an error, if the state number if invalid.

year

A number representing the desired year.

Value

This function returns a map with the locations of accidents for the selected state and year.

Examples

1
2
3
4
5
6
## Not run: 
fars_summarize_years(2013)
fars_summarize_years(c(2013,2014))
fars_summarize_years(2013:2015)

## End(Not run)

marmello77/FARS documentation built on Jan. 1, 2021, 9:18 a.m.