diff --git a/AQP/sharpshootR/CA-snow-survey.Rmd b/AQP/sharpshootR/CA-snow-survey.Rmd index b9ceb08..f6ddf6e 100644 --- a/AQP/sharpshootR/CA-snow-survey.Rmd +++ b/AQP/sharpshootR/CA-snow-survey.Rmd @@ -96,7 +96,7 @@ library(purrr) # current data are: yr <- 2024 -mo <- 'March' +mo <- 'April' # Stanislaus River watershed course.data <- data.frame(course_number=c(129, 323, 131, 132, 134, 345, 344, 138, 139, 384, 140, 142, 143, 145, 152)) diff --git a/AQP/sharpshootR/CA-snow-survey.html b/AQP/sharpshootR/CA-snow-survey.html index e95ef3b..6531044 100644 --- a/AQP/sharpshootR/CA-snow-survey.html +++ b/AQP/sharpshootR/CA-snow-survey.html @@ -11,7 +11,7 @@ - +
# plot all data, each line is a course
xyplot(SWE ~ year | month, data=scaled.data, groups=name, col=rgb(0.1, 0.1, 0.1, alpha=0.25), type=c('l','g'), span=0.125, as.table=TRUE, scales=list(alternating=3, x=list(tick.number=10, rot=90)))
-
+
# plot all data: each dot is a survey
xyplot(SWE ~ year | month, data=scaled.data, type=c('p','g', 'smooth'), span=0.125, as.table=TRUE, scales=list(alternating=3, x=list(tick.number=10, rot=90)), cex=0.25, pch=16, lwd=2)
-
+
xyplot(scaled.SWE ~ year | month, data=scaled.data, type=c('p','g', 'smooth'), span=0.125, as.table=TRUE, scales=list(alternating=3, x=list(tick.number=10, rot=90)), cex=0.25, pch=16, lwd=2)
-
+
xyplot(emp.pctile ~ year | month, data=scaled.data, type=c('p','g', 'smooth'), span=0.125, as.table=TRUE, scales=list(alternating=3, x=list(tick.number=10, rot=90)), cex=0.25, pch=16, lwd=2)
-
+
xyplot(emp.pctile ~ year | month, data=scaled.data, type=c('p','g', 'smooth'), span=0.25, as.table=TRUE, scales=list(alternating=3, x=list(tick.number=10, rot=90)), cex=0.25, pch=16, lwd=2, subset=year > 1970)
-
+
tps <- tactile.theme(box.dot=list(col='black', pch='|'), box.rectangle=list(col='black'), box.umbrella=list(col='black', lty=1), plot.symbol=list(col='black', cex=0.33), strip.background=list(col=grey(0.85)))
bwplot(emp.pctile ~ factor(year) | month, data=scaled.data, as.table=TRUE, par.settings=tps, scales=list(alternating=3, x=list(tick.number=10, rot=90)), subset=year > 1970 & month == mo, stats=custom.bwplot, panel=function(...) {panel.grid(-1, -1); panel.bwplot(...)})
-
+
bwplot(spi ~ factor(year) | month, data=scaled.data, as.table=TRUE, par.settings=tps, scales=list(alternating=3, x=list(tick.number=10, rot=90)), subset=year > 1970 & month == mo, stats=custom.bwplot, panel=function(...) {panel.grid(-1, -1); panel.bwplot(...)})
-
+
por <- sprintf('Period of Record: 1939-%s', yr)
bwplot(emp.pctile ~ factor(year), data=scaled.data, main=sprintf('%s Snow Survey', mo), sub = por, ylim=c(-0.05, 1.1), ylab='Empirical Percentiles of SWE', par.settings=tps, scales=list(alternating=3, y=list(tick.number=10)), subset=year > 1997 & month == mo, panel=function(x=x, y=y, ...) {
@@ -584,7 +584,7 @@ Analysis of the Entire Record, all Courses
panel.text(x=1:length(n.stations), y=1.03, labels=n.stations, cex=0.65, font=2)
panel.text(x=10, y=1.075, labels='Snow Courses Reporting', cex=0.85, font=3)
})
-
+
This document is based on sharpshootR
version 2.2.
This document is based on sharpshootR
version 2.2.