fars_map_state: Plot State Map with Accident Locations

Description Usage Arguments Value Examples

View source: R/fars_map_state.R

Description

The function plots the map of a specified state (“state.num“) with all its accident locations of a specified “year“. Invalid “state.num“ will throw an error. Nothing will be plotted or returned if a valid state does not have any observations.

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

A numeric or integer specifying the number for which the is to be plotted.

year

A numeric, integer, character or factor that should specify the year. If multiple filenames are to be provided, input needs to be provided as vector.

Value

A plot of the state map for the specified state with all accident locations.

Examples

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

## End(Not run)

olivenbert/mypkg documentation built on May 25, 2019, 2:21 p.m.