fars_map_state: Creates a geographical plot showing the accidents for a given...

Description Usage Arguments Value Note Examples

View source: R/fars_functions.R

Description

Creates a geographical plot showing the accidents for a given year in a given state. Each accident is plotted as a single dot.

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

The state number which you would like displayed.

year

The year that you would like in the filename.

Value

Displays a plot (no object returned).

Note

If the state.num argument doesn't correspond to a state within the specified data frame's STATE column, and error will be thrown.

If there are no accidents to plot for the specified state.num/year combination a message will display saying so.

Examples

1
## Not run: fars_map_state(42, 2015)

marshallm94/assignmentr documentation built on Nov. 21, 2019, 6:05 p.m.