fars_map_state: fars_map_state

Description Usage Arguments Value Note Examples

Description

This function plots the spatial distribution of fatalities corresponding to the input state number and year

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

number indicative of the state

year

a vector of years

Value

graphical map of the spatial distribution of fatalisties for agive state in a given year

Note

if an invalid year or state number is defined in the input a warning message will be thrown

Examples

1
2
3
 
library(maps)
fars_map_state(10,2014)

andyc-rpackage/Assignment2 documentation built on May 10, 2019, 11:44 a.m.