fars_map_state: Creates graph for a specific state and year

Description Usage Arguments Value Note Examples

Description

This function receives a specific state and year, retrieving the associated data. If the state exists, it filters the data per state and creates the related graph. The function needs the library maps.

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

A number indicating the state

year

A number indicating the year

Value

This function creates a graph of a specific state and year

Note

The function returns an error if the state number is invalid (not present)

Examples

1
2
3
4
## Not run: 
fars_map_state(state.num=1,year=2014)

## End(Not run)

bibagitbub/farspackage documentation built on May 12, 2019, 8:29 p.m.