Learn R Programming

move (version 1.0)

plot: Plotting track or raster

Description

Function for plotting a recorded track from a Move object or the probability values from a DBBMM object

Usage

## S3 method for class '.MoveTrackSingle,missing':
plot(x, y,...)
  ## S3 method for class '.MoveTrackStack,missing':
plot(x, y, type="p", ...)
  ## S3 method for class '.MoveTrackSingleBurst,missing':
plot(x, y, type="p", ...)

Arguments

x
Move, MoveStack, MoveBurst or DBBMM object
y
unused variable (listed for compatibility reasons)
type
defines the type of the plot (e.g. 'l', 'p', 'b', 'o')
...
arguments to be passed to methods, such as graphical parameters, and the logical add argument (see par)

Details

If x is a Move, MoveStack object a track is plotted with points and lines. The track can be added to another plot with the add = TRUE. If x is a MoveBurst object colored lines (according to the burstID) are plotted if the type is set to 'l'. By default it is 'p' which plots the real coordinates of the Move object as points. If x is a DBBMM object its raster object is plotted with the corresponding cell values. Unlike the image function, the cell size ratio keeps the same when the plot window is re-sized.

Examples

Run this code
load(system.file("extdata", "move.RData", package="move"), .GlobalEnv)
stack <- moveStack(list(leroy,leroy))

plot(leroy) # plot a Move object
plot(leroy, type="o", col=3)
plot(stack, col=c(3,5), lwd=3) # plot a MoveStack object
plot(stack, type="l", col=c(3,5), lwd=3)

plot(leroydbbmm) # plot the raster of a DBBMM object
plot(dbbmmstack) # plot the raster of a DBBMMStack object

example(burst)
plot(testb)

Run the code above in your browser using DataLab