fars_map_state: Plots fatal accidents in a State for a particular year

Description Usage Arguments Details Value Note Examples

View source: R/fars_functions.R

Description

Function that renders on a map the location of fatal accidents that occurred in a specific State in a particular year

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

Integer denoting the state

year

Integer representing the year of interest

Details

Function aborts if the state number state.num is invalid

Value

This function renders and returns a map object

Note

Makes use of fars_read() and make_filename() functions

Examples

1
2
3
4
## Not run: 
fars_map_state(20, 2013)

## End(Not run)

shaowei72/MyFirstPackage documentation built on June 25, 2020, 10:07 a.m.