data(maxau) ; plot(maxau[,"s"])
sen.res <- sens.slope(maxau[,"s"])
t <- (1:(length(maxau[,"s"])))
s.pred <- sen.res$intercept + sen.res$b.sen * t
s.pred.ts <- ts(s.pred)
tsp(s.pred.ts) <- tsp(maxau[,"s"])
lines(s.pred.ts, lty=2)
Run the code above in your browser using DataLab