fars_map_state: fars_map_state

Description Usage Arguments Value Note Examples

Description

Function to read data from the US National Highway Traffic Safety Administration's Fatality Analysis Reporting System. and plot the of observations for the given year on a png state map based on latitude and longitude of the observations.

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

Int vector of length 1 (Alabama = 1, Wyoming = 50, etc)

year

Int vector of length 1 of the year desired (2013, 2014, etc)

Value

A png file with the number of observations plotted on a state map

Note

parameters 'state.num' and 'year' must each be a length 1 vector

Examples

1
2
3
4
5
 ## Not run: 
  fars_map_state(1,2013)
  fars_map_state(12,2014)
 
## End(Not run)

B0Ib0ivrb63B/farsRPackageProj- documentation built on May 29, 2019, 11:04 p.m.