boundingBox: Bounding Box of a Tracks Object

Description Usage Arguments Value Examples

View source: R/functions.R

Description

Computes the minimum and maximum coordinates per dimension (including time) for all positions in a given list of tracks.

Usage

1

Arguments

x

the input tracks object.

Value

Returns a matrix with two rows and d+1 columns, where d is the number of spatial dimensions of the tracks. The first row contains the minimum and the second row the maximum value of any track in the dimension given by the column.

Examples

1
2
3
4
5
## Use bounding box to set up plot window
bb <- boundingBox(c(TCells,BCells,Neutrophils))
plot( Neutrophils, xlim=bb[,"x"], ylim=bb[,"y"], col=1 )
plot( BCells, col=2, add=TRUE )
plot( TCells, col=3, add=TRUE )

celltrackR documentation built on April 14, 2020, 6:42 p.m.