logsmoo | R Documentation |
Logarithmic smoothing with loess
logsmoo(x, y, x.is.log = FALSE, ...)
x |
numeric; the index series (cannot contain |
y |
numeric; the series of values associated with x |
x.is.log |
logical; determines whether the series in |
... |
additional parameters (e.g., |
The result of loess.smooth
Barbour, A. J., and D. C. Agnew (2011), Noise levels on Plate Boundary Observatory borehole strainmeters in southern California, Bulletin of the Seismological Society of America, 101(5), 2453-2466, doi: 10.1785/0120110062
loess.smooth
and approxfun
set.seed(11133)
n <- 101
lx <- seq(-1,1,length.out=n)
y <- rnorm(n) + cumsum(rnorm(n))
plot(lx, y, col='grey')
lines(logsmoo(lx, y, x.is.log=TRUE))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.