fars_map_state: Vizualize traffic accidents happening in given states during...

Description Usage Arguments Value Examples

Description

This function creates a graph of the traffic accidents that have happened during given years in given states, plotted by location over an outline of the state.

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

the code number of a state, which can be in any format, but should be singular

year

a year in which to search for traffic accidents, which can be in any format, but should be singular

Value

a plot with the locations of accidents in a given state in a given year, mapped over the outline of the state. if a state number does not exist or if the given state has no accidents in that year, it returns an error message.

Examples

1
2
3
4
5
## Not run: 
fars_map_state(state.num=1,year=2013)
fars_map_state(1,2013)

## End(Not run)

schwarja209/rfars documentation built on May 29, 2019, 9:32 a.m.