data(gp.rwl)
gp.ids <- read.ids(gp.rwl, stc = c(0, 2, 1))
gp.treeMean <- treeMean(gp.rwl, gp.ids)
gp.treeMean2 <- treeMean(gp.rwl, gp.ids, na.rm=TRUE)
# look at an example of a single tree with different averaging periods.
# The years are named on every subset so that the cores and the two tree
# means stay on one grid: selecting series alone would give each of them
# only the years it covers, and the three spans are not the same.
yrs <- rownames(gp.rwl)
tree40 <- data.frame(gp.rwl[yrs, c("40A","40B")],
gp.treeMean[yrs, "40", drop=FALSE],
gp.treeMean2[yrs, "40", drop=FALSE])
names(tree40) <- c("coreA", "coreB", "treeMean1", "treeMean2")
head(tree40,50)
data(ca533)
ca533.treeMean <- treeMean(ca533, autoread.ids(ca533))
# plot using S3method for class "rwl"
plot(ca533.treeMean,plot.type="spag")
Run the code above in your browser using DataLab