fars_map_state: Data plotting

Description Usage Arguments Value Examples

Description

This function plots the accidents for the state provided in the input on the map. The function throws an error if the state number in the input argument does not exist in the fars data.If there are no accidents reported for the state of interest, a message is displayed.

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

An integer representing the corresponding state

year

An integer representing the year for which the plot is made

Value

This returns a map with the accidents plotted for the state in the input

Examples

1
## Not run: fars_map_state(3,2013)

nandhinidev/farsplot documentation built on May 14, 2019, 8:02 a.m.