fars_map_state: Draw a map and show the accidents on certain state and time

Description Usage Arguments Details Value

Description

This function shows the accidents' location whose LONGITUD value is not bigger than 900 and LATITUDE value is not bigger than 90 on the map according to the input state number and year.

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

An integral value

year

A numeric value

Details

If the filename does not exist, it will return an error to tell you the filename does not exist. If the state number are not in the data, it will return an error to tell you the number are invalid. If no accident exist, it will give you a message that "no accidents to plot".

Value

This function returns map to show the accidents' location.


Yangzhichao95/far documentation built on May 10, 2019, 12:05 a.m.