fars_map_state: function "fars_map_state"

Description Usage Arguments Details Value Examples

View source: R/fars_functions.R

Description

The function plot a map of a US state with the coordinates of the accidents in a year

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

A number of a US state (number with 2 digits)

year

A year (number with 4 digits)

Details

The function stopped with the message invalid STATE number: ", <state.num>)" if no record with the state number in the data frame

The function generate the message "no accidents to plot" and returns the invisible value NULL if there is not any accident in the selected data

Value

none

Examples

1
2
3
stateno <- 1
yyyy <- 2015
fars_map_state( state.num=stateno, year=yyyy )

ap-wi/fars documentation built on May 6, 2019, 4:37 p.m.