fars_map_state: Plot state data on the map

Description Usage Arguments Value Examples

Description

take state.num and year as input, extract longitude and latitude accordingly, then plot the state on the map. Error will occur if state number is invalid.

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

state number according to which state is selected

year

The year to be selected. This can be either string or numberic

Value

a graph with each selected observation ploted on the map

Examples

1
2
3
library(maps)
setwd(paste0(.libPaths()[1],"/Fas"))
fars_map_state(1, 2014)

esppk/fas_pkg documentation built on May 9, 2019, 9:59 p.m.