View source: R/event_functions_2d.R
spline_stats | R Documentation |
This function computes 4 splines, from median, iqr, mean and standard deviation values.
spline_stats(dat)
dat |
The data matrix |
A list with following components
|
The spline computed from the median values. |
|
The spline computed from IQR values. |
|
The spline computed from mean values. |
|
The spline computed from standard deviation values. |
|
The mean of the data matrix. |
|
The standard deviation of the data matrix. |
out <- gen_stream(1, sd=15) zz <- as.matrix(out$data) sstats <- spline_stats(zz[1:100,]) oldpar <- par(mfrow=c(2,1)) image(1:ncol(zz), 1:nrow(zz),t(zz), xlab="Location", ylab="Time" ) plot(sstats[[1]], type="l") par(oldpar)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.