align_move | R Documentation |
This function aligns movement data to a uniform time scale with a uniform temporal resolution throughout the complete movement sequence.
This prepares the provided movement data to be interpretable by frames_spatial
, which necessitates a uniform time scale and
a consistent, unique temporal resolution for all moving individuals to turn recording times into frame times.
align_move(
m,
res = "minimum",
unit = NA,
spaceMethod = "greatcircle",
...,
verbose = TRUE
)
m |
|
res |
either numeric, representing the temporal resolution, to which
|
unit |
character, temporal unit of |
spaceMethod |
character, either |
... |
deprecated arguments including |
verbose |
logical, if |
Aligned move
or moveStack
, ready to be used with frames_spatial
-
Jakob Schwalb-Willmann
df2move
frames_spatial
frames_graph
library(moveVis)
library(move)
data("move_data")
# the tracks in move_data have irregular timestamps and sampling rates.
# print unique timestamps and timeLag
unique(timestamps(move_data))
unique(unlist(timeLag(move_data, units = "secs")))
# use align_move to correct move_data to a uniform time scale and lag using interpolation.
# resolution of 4 minutes:
m <- align_move(m = move_data, res = 4, unit = "mins")
unique(unlist(timeLag(m, units = "mins")))
# resolution of 1 hour:
m <- align_move(move_data, res = 1, unit = "hours")
unique(unlist(timeLag(m, units = "hours")))
# resolution of 15 seconds:
m <- align_move(move_data, res = 15, unit = "secs")
unique(unlist(timeLag(m, units = "secs")))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.