fars_map_state: Maps the FARS observations for specified state & years

Description Usage Arguments Value Examples

View source: R/fars_functions.R

Description

Reads the CSV data for the specified year and then filters the data for the specified state num. The filtered data is then mapped on the plot using the Latitude and Longitude value of each observation.

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

Integer value representing the state number

year

The year for which the observations are required

Value

Map plot showing the observations as found for the given state.num and year

Examples

1
2
3
fars::fars_map_state(1,2013)
fars::fars_map_state(1,2014)
fars::fars_map_state(1,2015)

akbarpunjwani/msdr-rpkgexample documentation built on Feb. 22, 2021, 3:59 a.m.