fars_map_state: Display accidents map by state and year

Description Usage Arguments Value References See Also Examples

View source: R/fars_functions.R

Description

Displays a plot with a state map including the accidents location by year If the state.num is invalid the function shows an error

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

An Integer with the State Code

State Code State Name
01 Alabama
02 Alaska
04 Arizona
05 Arkansas
06 California
08 Colorado
09 Connecticut
10 Delaware
11 District of Columbia
12 Florida
13 Georgia
15 Hawaii
16 Idaho
17 Illinois
18 Indiana
19 Iowa
20 Kansas
21 Kentucky
22 Louisiana
23 Maine
24 Maryland
25 Massachusetts
26 Michigan
27 Minnesota
28 Mississippi
29 Missouri
30 Montana
31 Nebraska
32 Nevada
33 New Hampshire
34 New Jersey
35 New Mexico
36 New York
37 North Carolina
38 North Dakota
39 Ohio
40 Oklahoma
41 Oregon
42 Pennsylvania
43 Puerto Rico
44 Rhode Island
45 South Carolina
46 South Dakota
47 Tennessee
48 Texas
49 Utah
50 Vermont
51 Virginia
52 Virgin Islands
53 Washington
54 West Virginia
55 Wisconsin
56 Wyoming
year

A string, or an integer, with the input year

Value

None

References

2014 FARS/NASS GES Coding and Validation Manual

See Also

fars_read

make_filename

Examples

1
2
3
4
## Not run: 
fars_map_state(49, 2015)

## End(Not run)

EnriquePH/FARS documentation built on May 20, 2019, 4:07 p.m.