fars_map_state: Show accidents on a state map

Description Usage Arguments Value Examples

View source: R/fars_functions.R

Description

Given a year and a state number, this functions creates an image of the state with the accidents marked. An error is given if either the state number or the year is not valid. A message is provided if there were no accidents in a paritcular state and year.

Usage

1
fars_map_state(state.num, year)

Arguments

state.num,

an integer, must be less than 57.

year,

an integer or string coercible to an integer

Value

A map of the state, where accidents are marked

Examples

1
2
3
4
## Not run: 
fars_map_state(40,2014)

## End(Not run)

JLYJabc/farsfunctions documentation built on May 28, 2019, 7:51 a.m.