Learn R Programming

move (version 1.0)

lines: Plotting a track as lines

Description

Function for plotting a recorded track from a Move object as lines

Usage

## S3 method for class '.MoveTrackSingle':
lines(x,...)
  ## S3 method for class '.MoveTrackStack':
lines(x,col=NA,...)
  ## S3 method for class '.MoveTrackSingleBurst':
lines(x,col=NA,...)

Arguments

x
Move object
col
a vector of colors (same length as the number of objects)
...
arguments to be passed on, e.g. col for color, or add to add the lines to a plot.

Examples

Run this code
load(system.file("extdata", "move.RData", package="move"), .GlobalEnv)

plot(rickydbbmm)
lines(spTransform(ricky), col=3) # add a track from a Move object to a plot
stack <- moveStack(list(leroy,leroy))
lines(stack, col=3:4, pch=4)

Run the code above in your browser using DataLab