fars_map_state: Map the state in the provided year

Description Usage Arguments Note Examples

View source: R/fars_functions.R

Description

Draws a map of the specified state showing the reported accidents coordinates for the given year

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

A single integer value representing the state code

year

A single positive integer value representing the year of interest

Note

Throws an error if the state number isn't valid or if there are no accidents to plot. Also doesn't work if provided parameters are vectors.

Examples

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

# Doesn't work
fars_map_state(c(1,2), c(2013,2014))
fars_map_state(c(1,2), 2013)

## End(Not run)

CTBushong/FARS documentation built on Dec. 17, 2021, 1:02 p.m.