View source: R/rMEA_graphics.R
lines.MEA | R Documentation |
MEA
object to a PlotAdds lines of a MEA
object to a Plot
## S3 method for class 'MEA' lines(x, from = 0, to = NULL, duration = NULL, ccf = F, rescale = F, ...)
x |
an object of class |
from |
either an integer or a string in the format hh:mm:ss or mm:ss representing the starting second. |
to |
if |
duration |
if |
ccf |
either FALSE or a string representing the type of ccf to be overlayed. Possible values can be found with the |
rescale |
logical. Should the motion energy time-series be rescaled? |
... |
further arguments passed to |
Note: if more of than 10s of trailing zeroes are found at the end of both s1 and s2 signals they are truncated.
## read a single file path_normal <- system.file("extdata/normal/200_01.txt", package = "rMEA") mea_normal <- readMEA(path_normal, sampRate = 25, s1Col = 1, s2Col = 2, s1Name = "Patient", s2Name = "Therapist", skip=1, idOrder = c("id","session"), idSep="_") mea_normal <- MEAccf(mea_normal, lagSec = 5, winSec = 30, incSec = 10, ABS = FALSE) mea_smoothed <- MEAsmooth(mea_normal) ## Visual inspection of the data plot(mea_normal[[1]], from = 240, duration=20) lines(mea_smoothed[[1]], from = 240, duration=20, lty=3, col=c(1,2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.