# NOT RUN {
data(tempsalinity)
if(require(zoo)) {
plot(tempsalinity[,3:4])
## overide plot.zoo method
plot.default(tempsalinity[,3:4])
abline(lm(salinity ~ temperature, tempsalinity, subset = 1:67))
abline(lm(salinity ~ temperature, tempsalinity, subset = -(1:67)))
}
# }
Run the code above in your browser using DataLab