fars_map_state: Plot accident for given state in a given year This function...

Description Usage Arguments Value Examples

View source: R/fars_functions.R

Description

Plot accident for given state in a given year This function plots the accident in a given state for a given year.

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

- numeric

year

- numeric

Value

1. plotted map of accident for the year 2. "invalid state" if state number not found 3. "No accident to plot " if for a given year and given state no accident occurred.

Examples

1
2
setwd(system.file("extdata", package = "FarsProject"))
fars_map_state(050,2014)

shaank121/FarsProject documentation built on May 29, 2019, 9:34 a.m.