fars_map_state: Plotting fatalities' state locations by year

View source: R/fars_functions.R

fars_map_stateR Documentation

Plotting fatalities' state locations by year

Description

This function generates a US state map with the locations of the fatalities for a given year. An error is given if the state number is not present in the data set. If no fatalities present a messages is generated

Usage

fars_map_state(state.num, year)

Arguments

state.num

An integer representing a US state

year

An integer or string for the year of the FARS file

Value

this function returns a US state map with dots representing the fatalities in a given year for a FARS file

Examples

  ## Not run: 
    fars_map_state(10, 2015)
    fars_map_state(36, 2014)
    fars_map_state(50, 2013)
  
## End(Not run)


ykv001/FARSpckgwk4 documentation built on Jan. 20, 2025, 10:38 p.m.