Learn R Programming

MotilityLab (version 0.2-5)

plot.tracks: Plot Tracks in 2D

Description

Plots tracks contained in a "tracks" object into a twodimensional space pallelel to the data's axes.

Usage

"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. c('x','y') for the $x$ and $y$ dimension.
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 length(x), where each entry specififes the color for the corresponding track.
pch.start
point symbol with which to label the first position of the track (see points).
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 plot (for add=FALSE) or points (for add=TRUE), respectively.

Details

One dimension of the data (by default $y$) is plotted against another (by default $x$). 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.

See Also

plot3d