fars_map_state: fars_map_state

Description Usage Arguments Value Examples

View source: R/fars_functions.R

Description

This function plots the number of accidents in an input year on an input US state map. This function returns an error message if either the state.num or year do not exist in the dataset

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

A number representing a state in the dataset

year

A number representing the year in the dataset

Value

This function returns a plot of the number of accidents for based on the state.num with year inputs. Returns an error message if the state or year do not exist in the dataset.

Examples

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

## End(Not run)

vnmath/FRAS documentation built on May 18, 2020, 12:06 a.m.