
Last chance! 50% off unlimited learning
Sale ends in
This function extracts the timestamps associated with each frame of a list of frames created using frames_spatial
or frames_graph
and returns them as a vector.
get_frametimes(frames)
list, list of frames created using frames_spatial
or frames_graph
.
A POSIXct vector of timestamps representing the time assoicated with each frame in frames
.
moveVis
stores the times represented by a frame as an attribute "time"
for each ggplot
frame.
# NOT RUN {
library(moveVis)
library(move)
data("move_data")
# align movement
m <- align_move(move_data, res = 4, unit = "mins")
# }
# NOT RUN {
frames <- frames_spatial(m, map_service = "osm", map_type = "watercolor")
frames.ts <- get_frametimes(frames)
print(frames.ts)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab