powered by
Make tracks more coarse-grained by keeping only every kth position.
subsample(x, k = 2)
A tracks object with the new, more coarse-grained tracks.
tracks
an input track or tracks object.
a positive integer. Every \(k\)th position of each input track is kept.
interpolateTrack, which can be used for more flexible track coarse-graining.
interpolateTrack
## Compare original and subsampled versions of the T cell tracks plot( TCells, col=1 ) plot( subsample( TCells, 3 ), col=2, add=TRUE, pch.start=NULL )
Run the code above in your browser using DataLab