Description Usage Arguments Details Value Examples
Accepts a state number and year from the user/calling program Makes the appropriate filename using the year and the make_filename function gets a data frame from fars_read()
1 | fars_map_state(state.num, year)
|
state.num |
Number of a state |
year |
The year in question |
Error checks to make sure the state number exists If so, uses maps and graphics to create plots based on latitude and longitude from the data file
Uses make_filename(year) fars_read(filename)
A plot or set of plots based on latitude and longitude from the data file
1 2 3 4 | ## Not run:
fars_map_state(1, 2013)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.