| difftrack-class {trajectories} | R Documentation |
Class "difftrack"
Description
Class that represents differences between two Track objects.
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(s)
Nikolai Gorte <n.gorte@gmail.com>
Examples
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
## Not run:
stcube(difftrack)
## End(Not run)
[Package trajectories version 0.2-8 Index]