Learn R Programming

MotilityLab (version 0.2-5)

boundingBox: 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

Run this code
## 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 )

Run the code above in your browser using DataLab