Description Usage Arguments Value Note Examples
Given a number representing a US State and a value representing a year, this function extracts the FARS data for the given State at the given year, removes non-sensical observations (where longitude > 900 or latitude > 90) and plots all the remaining observations on a map.
1 | fars_map_state(state.num, year)
|
state.num |
A value convertible to an integer, which represents the US State for which to extract FARS data. |
year |
A value convertible to an integer, which represents the year for which to extract FARS data. |
No return value, but has the side effect of plotting the FARS observations for
the given US State (state.num
) at the given year
on a map.
state.num
and year
must both be castable to integers.
1 2 3 4 | ## Not run:
fars_map_state(4, 2015)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.