get_frametimes: Get frame times from frames

Description Usage Arguments Details Value See Also Examples

View source: R/get_frametimes.R

Description

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.

Usage

1

Arguments

frames

list, list of frames created using frames_spatial or frames_graph.

Details

moveVis stores the times represented by a frame as an attribute "time" for each ggplot frame.

Value

A POSIXct vector of timestamps representing the time assoicated with each frame in frames.

See Also

frames_spatial frames_graph

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
library(moveVis)
library(move)

data("move_data")
# align movement
m <- align_move(move_data, res = 4, unit = "mins")


frames <- frames_spatial(m, map_service = "osm", map_type = "watercolor")
frames.ts <- get_frametimes(frames)
print(frames.ts)

moveVis documentation built on March 31, 2020, 5:08 p.m.