timeStep | R Documentation |
Applies a summary statistics on the time intervals between pairs of consecutive positions in a track dataset.
timeStep(x, FUN = median, na.rm = FALSE)
x |
the input tracks. |
FUN |
the summary statistic to be applied. |
na.rm |
logical, indicates whether to remove missing values before applying FUN. |
Most track quantification depends on the assumption that track positions are
recorded at constant time intervals. If this is not the case, then most of the statistics
in this package (except for some very simple ones like duration
) will not work.
In reality, at least small fluctuations of the time steps can be expected. This
function provides a means for quality control with respect to the tracking time.
Summary statistic of the time intervals between two consecutive positions in a track dataset.
## Show tracking time fluctuations for the T cell data
d <- timeStep( TCells )
plot( sapply( subtracks( TCells, 1 ) , duration ) - d, ylim=c(-d,d) )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.