View source: R/add_timestamps.R
add_timestamps | R Documentation |
This function adds timestamps to frames created with frames_spatial
.
add_timestamps(frames, m = NULL, x = NULL, y = NULL, ..., verbose = TRUE)
frames |
an object of class |
m |
deprecated, times are natively stored in |
x |
numeric, optional, position of timestamps on the x scale. By default, timestamps will be displayed in the top center. |
y |
numeric, optional, position of timestamps on the y scale. |
... |
optional, arguments passed to |
verbose |
logical, if |
A frames object of class moveVis
.
Jakob Schwalb-Willmann
frames_spatial
frames_graph
animate_frames
library(moveVis)
library(move)
data("move_data", "basemap_data")
m <- align_move(move_data, res = 4, unit = "mins")
# create spatial frames using a custom NDVI base layer
r_list <- basemap_data[[1]]
r_times <- basemap_data[[2]]
## Not run:
frames <- frames_spatial(m, r_list = r_list, r_times = r_times, r_type = "gradient",
fade_raster = TRUE)
# add timestamps as text
frames.a <- add_timestamps(frames, type = "text")
frames.a[[100]]
# or use the ggplot2 "label" type:
frames.b <- add_timestamps(frames, type = "label")
frames.b[[100]]
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.