boundingBox {celltrackR}R Documentation

Bounding Box of a Tracks Object

Description

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

Usage

boundingBox(x)

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

## 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 )


[Package celltrackR version 1.2.0 Index]