Description Usage Format Source References See Also Examples
Precipitation rates in the Wood River Valley and surrounding areas.
1 |
An object of data.frame class with 582 records and the following variables: with the following variables:
year and month during which precipitation were recorded,
with a required date format of YYYYMM
.
name of the precipitation zone,
see precip.zones
dataset for details.
monthly depth of precipitation accounting for spring melt, in meters.
monthly depth of precipitation recorded at the weather station, in meters.
Idaho Department of Water Resources, accessed on April 24, 2015
National Oceanic and Atmospheric Administration's National Weather Service (NWS) Cooperative Observer Program
U.S. Bureau of Reclamation's Cooperative Agricultural Weather Network (AgriMet)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | str(precipitation)
d <- precipitation
d <- data.frame(Date = as.Date(paste0(d$YearMonth, "15"), format = "%Y%m%d"),
Precip = d$Precip)
zones <- c("Hailey", "Ketchum", "Picabo")
d1 <- d[precipitation$PrecipZone == zones[1], ]
d2 <- d[precipitation$PrecipZone == zones[2], ]
d3 <- d[precipitation$PrecipZone == zones[3], ]
d <- merge(merge(d1, d2, by = "Date"), d3, by = "Date")
col <- c("red", "blue", "green")
ylab <- paste("Precipitation in", c("meters", "feet"))
inlmisc::PlotGraph(d, ylab = ylab, col = col, lty = 1:3,
conversion.factor = 3.28084, seq.date.by = "year")
legend("topright", zones, col = col, lty = 1:3, inset = 0.02, cex = 0.7,
box.lty = 1, bg = "#FFFFFFE7")
graphics.off()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.