fars_map_state: Draw the Map of a State and Plot the Location of the...

Description Usage Arguments Value Note Examples

View source: R/fars_functions.R

Description

Select a state and a year and draw the map of the states and overlay the locations of accidents

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

a number designating a state

year

a numeric value indicating the year

Value

the function does not return anything. It plots a map if the input are in the expected range.

Note

If the state number used as input does not exist in the data set, the function will throw an error indicating the selection was not valid. If for the chosen combination of state and year there are no accidents the function will display a message informing there are no accidents to plot.

Examples

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

## End(Not run)

DragosMG/fars documentation built on Sept. 16, 2021, 12:58 p.m.