# Use series CAM011 from the Campito dataset
data(ca533)
series = ca533[,"CAM011"]
series=series[!is.na(series)]
plot(series,type='l',ylab='Ring Width (mm)',col='grey')
lines(ffcsaps(series,nyrs=32),col='red',lwd=2)
lines(ffcsaps(series,nyrs=64),col='green',lwd=2)
lines(ffcsaps(series,nyrs=128),col='blue',lwd=2)
# Use first series from the Mesa Verde dataset
data(co021)
series = co021[,1]
series=series[!is.na(series)]
plot(series,type='l',ylab='Ring Width (mm)',col='grey')
lines(ffcsaps(series,nyrs=32),col='red',lwd=2)
lines(ffcsaps(series,nyrs=64),col='green',lwd=2)
#nyrs defaults to 0.5*length(series) = 347
lines(ffcsaps(series),col='blue',lwd=2)
Run the code above in your browser using DataLab