daily_stationmap: Plot daily weather stations for a particular county.

Description Usage Arguments Value Examples

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

1
2
daily_stationmap(fips, daily_data, point_color = "firebrick",
  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).

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

1
2
3
4
5
6
7
8
9
## 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)

countyweather documentation built on May 1, 2019, 6:35 p.m.