fars_map_state: Plot the location of fatal injuries

Description Usage Arguments Details Value Examples

Description

This is a function that creates a polygon map and plots the longitude and langitude coordinates of fatal injuries in a specified state and year in a map. It reads a numeric value representing the state and a year value. It reads the csv file in the working directory that holds the longitude and langitude of the incidents in the particular year. The funtion filters the incidents ny the given state

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

A numerical represenatiion of the state

year

The year value ot plot the fatal injuries

Details

In the case of wrong state numerical representation, or zero fatal injuries for that state in the particular year, or there is no csv file in the current working directory under the specified year value, an error message is provided

Value

A polygon map and plotted points

Examples

1
2
3
4
5
## Not run: 
fars_map_state(10, 2014)
fars_map_state(1, 2013)

## End(Not run)

lefkiospaikousis/LPfars documentation built on June 7, 2019, 12:55 a.m.