Description Usage Arguments Value Examples
Produces a ggplot
object mapping stations that contribute
to the weather data returned by hourly_data
.
1 2 | hourly_stationmap(fips, hourly_data, point_color = "firebrick",
point_size = 2, station_label = FALSE)
|
fips |
A five-digit FIPS county code. |
hourly_data |
A list returned from the function |
point_color |
Character string with color for points
mapping the locations of weather stations (passes to |
point_size |
Character string with size for for points
mapping the locations of weather stations (passes to |
station_label |
TRUE / FALSE Whether to include labels for each weather station. |
A ggplot
object mapping all weather stations for a particular
county that satisfy the conditions present in hourly_df
's
arguments (year(s), coverage, and/or weather variables). Because hourly
data is pulled by radius from each county's geograph center, this plot
includes the calculated radius from which stations are pulled for that
county. This radius
is calculated for each county using 2010 U.S. Census Land Area data.
2011 U.S. Census cartographic boundary shapefiles are used to proved
county outlines, included on this plot as well. Note: Because stations
are pulled within a radius from the county's geographic center, depending
on the shape of the county, weather stations from outside the county's
boundaries may sometimes be providing data for that county and some
weather stations within the county may not be included.
1 2 3 4 5 6 | ## Not run:
hourly_data <- hourly_df(fips = "12086", year = 1992,
var = c("wind_speed", "temperature"))
hourly_stationmap("12086", hourly_data)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.