fars_map_state: Make a plot of the accidents in a state for a given year

Description Usage Arguments Details Value Examples

Description

From a file in the working directory, this function makes a representation of a state with dots representing accidents. All previous for a valid state number and a valid year.

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

a number that represent a state

year

a number representing a year

Details

this function neeeds make_filename() and fars_read() from this package. As this function is necessary, all its details and notes must be consider.

Value

a plot representing the given state with dots that represent accidents. For an invalid state number it stops the execution and returns an error message.If the given state doesn't have any accident it returns a message.

Examples

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

Juanin2691/fars documentation built on May 9, 2019, 3:26 a.m.