plot.tracks {celltrackR} | R Documentation |
Plot Tracks in 2D
Description
Plots tracks contained in a "tracks" object into a twodimensional space pallelel to the data's axes.
Usage
## S3 method for class 'tracks'
plot(
x,
dims = c("x", "y"),
add = F,
col = order(names(x)),
pch.start = 1,
pch.end = NULL,
cex = 0.5,
...
)
Arguments
x |
the tracks to be plotted. |
dims |
a vector giving the dimensions of the track data that shall be
plotted, e.g. |
add |
boolean value indicating whether the tracks are to be added to the current plot. |
col |
a specification of the color(s) to be used. This can be a vector
of size |
pch.start |
point symbol with which to label the first position of the track
(see |
pch.end |
point symbol with which to label the last position of the track |
cex |
point size for positions on the tracks. |
... |
additional parameters (e.g. xlab, ylab).
to be passed to |
Details
One dimension of the data (by default ) is plotted against
another (by default
). The dimesions can be chosen by means of the
parameter
dims
and the axes can be labeled accordingly with the aid
of xlab
and ylab
. The color can be set through col
.
If the tracks should be added to an existing plot, add
is to be set
to TRUE
.
Value
None