Learn R Programming

trajectories (version 0.2-9)

difftrack-class: Class "difftrack"

Description

Class that represents differences between two Track objects.

Arguments

Objects from the Class

Objects can be created by calls of the form new("difftrack", ...). Objects of class difftrack contain 2 objects of class Track extended with points for timestamps of the other track and 2 SpatialLinesDataFrame conataining the the lines and distances between tracks.

Slots

track1:

Extended track1

track2:

Extended track2

conns1:

Lines between the original track1 and the new points on track2

conns2:

Lines between the original track2 and the new points on track1

Methods

plot

signature(x = "difftrack", y = "missing"): plot a difftrack

Author

Nikolai Gorte <n.gorte@gmail.com>

Examples

Run this code
showClass("difftrack")
## example tracks
library(sp)
library(xts)
data(A3)
track2 <- A3
index(track2@time) <- index(track2@time) + 32
track2@sp@coords <- track2@sp@coords + 0.003

## compare and plot
difftrack <- compare(A3, track2)
plot(difftrack)

## space-time cube of the difftrack
if (FALSE) {
 stcube(difftrack)
}

Run the code above in your browser using DataLab