search for: _smoothing_

Displaying 1 result from an estimated 1 matches for "_smoothing_".

2004 Dec 10
1
Adding a polygon to a time series plot
Preamble: Sorry for being dense. Now that that's done, here are my questions. I want to put a polygon on a plot of a time series. I'm going to add lines from a smooth.spline interpolation and other annotation to it. But here's the general idea: # Start code n <- 121 dat <- rnorm(n) plot(dat, type="n") polygon(c(1:n,n:1), c(dat,c(rep(0,n))), col =