fars_map_state: Plot the location of accidents in a given state and year

Description Usage Arguments Details Value Examples

View source: R/fars_functions.R

Description

Plot the location of accidents in a given state and year

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

An integer that represents the state number.

year

An integer or string indicating the year.

Details

This function takes the state number and a year as inputs and calls the supporting functions make_filename() and fars_read().

Value

Plots a map of the state, where the fatalities are the dots on the map.

Examples

1
2
3
4
5
## Not run: 
setwd('data')
fars_map_state(12, 2013)

## End(Not run)

TGaston/Rpd documentation built on Dec. 18, 2021, 4 p.m.