fars_map_state: FARS Map state

Description Usage Arguments Value Note Examples

View source: R/assignment_w2.R

Description

Plot accidents occurred on a specific state for a given year If there is no data for a state, the function will stop and throw an error.

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

State number.

year

Year in which the accidents to be plotted occurred.

Value

Map with accidents plotted

Note

This function depends on map and points functions from the maps and graphics package respectively.

Examples

1
## Not run: fars_map_state("1", "2013")

AleOlguin12/FARS documentation built on July 11, 2020, 1:03 p.m.