fars_map_state: Map events FARS data

Description Usage Arguments Value Note Examples

View source: R/fars_functions.R

Description

Reads in data for a particular year and maps the events in a given state specified by state number

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

a number indicating the state can be any number from 1 through 56.

year

the year for the accident events

Value

a plot of the state with points for each accident

Note

Warning: This function appears to be slightly buggy not returning all events on first plotting

Examples

1
2
3
 ## Not run: #Plot California accident patterns
fars_map_state(state.num=6, year=2013)
## End(Not run)

dhaycraft/trafficR documentation built on Nov. 4, 2019, 10:30 a.m.