fars_map_state: Plot FARS data for given state and year

Description Usage Arguments Value Author(s) Examples

View source: R/fars_functions.R

Description

This function reads in the FARs data and plots the given state with each accident represented by a black dot on the plot. User should be careful that the state number exists in the data and that there are accidents for that state, otherwise slight change will give a warning.

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

This is the number of a state. Should be valid

year

This is the year being considered in YYYY format

Value

This function returns NULL

Author(s)

Jesus Obregon Dominguez, gerencia@dataengineeringperu.com

Examples

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

## End(Not run)

Jechu2/FARS documentation built on Dec. 31, 2020, 1:12 p.m.