daily_stationmap: Plot daily weather stations for a particular county.

View source: R/daily_helpers.R

daily_stationmapR Documentation

Plot daily weather stations for a particular county.

Description

Produces a map with points indicating stations that contribute to the weather data in the daily_data data frame output by daily_fips.

Usage

daily_stationmap(
  fips,
  daily_data,
  point_color = "firebrick",
  fill_color = "lightgrey",
  point_size = 2,
  station_label = FALSE
)

Arguments

fips

A five-digit FIPS county code.

daily_data

A list returned from the function daily_df (see helpfile for daily_df).

point_color

Character string with color for points mapping the locations of weather stations (passes to ggplot).

fill_color

Character string with color for county background fill (passes to ggplot).

point_size

Character string with size for for points mapping the locations of weather stations (passes to ggplot).

station_label

TRUE / FALSE Whether to include labels for each weather station.

Value

A ggplot object mapping all weather stations for a particular county satisfying the conditions present in daily_df's arguments (date range, coverage, and/or weather variables). 2011 U.S. Census cartographic boundary shapefiles are used to provide county outlines.

Examples

## Not run: 
miami_stations <- daily_stations(fips = "12086", date_min = "1992-08-01",
                          date_max = "1992-08-31")
daily_data <- daily_df(stations = miami_stations, coverage = 0.90,
                      var = c("tmax", "tmin", "prcp"),
                      date_min = "1992-08-01", date_max = "1992-08-31")
daily_stationmap(fips = "12086", daily_data = daily_data)

## End(Not run)


leighseverson/countyweather documentation built on April 9, 2022, 11:38 a.m.