fars_map_state: Plot the location of each incident in a given state and year

Description Usage Arguments Value Examples

Description

This function takes input of a state number and a year, and plot the incidents of the given year in the map of the given state. Conditions that may result an error: state.num is not a valid number of states; year is not a valid number of year; Data of requested year does not exist;

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

An integer for the code number of a state

year

An integer or element coercible to integer representing a year.

Value

This function draws a map of the requested state, and plot on it the incidents occured in that state in the requested year. Each point represents an incident

Examples

1
## Not run: fars_map_state(1, 2014)

perfectslumber/far documentation built on May 8, 2019, 12:49 p.m.