fars_map_state: Fars map state

Description Usage Arguments Value Examples

View source: R/fars_functions.R

Description

This functions plots the fatal vehicles crashes location of a given year on a state map of a given state. If no crashes happened in a given year/state, the function returns a message saying that there is no accident to plot.

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

numeric. The US state to be plot.

year

character. The year for which the function will plot the accident.

Value

A plot showing where the accident happened for a given state in a given year.

Examples

1
fars_map_state(28,2013)

Capucine0210/CourseraProject documentation built on Jan. 1, 2022, 3:06 p.m.