add_progress.Rd
This function adds a progress bar to frames created with frames_spatial
.
add_progress(frames, colour = "grey", size = 1.8, verbose = TRUE)
an object of class moveVis
created with frames_spatial
.
character, progress bar colour.
numeric, progress bar line size..
logical, if TRUE
, messages and progress information are displayed on the console (default).
A frames object of class moveVis
.
library(moveVis)
library(move)
data("move_data", "basemap_data")
m <- align_move(move_data, res = 4, unit = "mins")
#> Temporal resolution of 4 [mins] is used to align trajectories.
# create spatial frames using a custom NDVI base layer
r_list <- basemap_data[[1]]
r_times <- basemap_data[[2]]
if (FALSE) {
frames <- frames_spatial(m, r_list = r_list, r_times = r_times, r_type = "gradient",
fade_raster = TRUE)
# add a progress bar:
frames.a <- add_progress(frames)
frames.a[[100]]
# or in red and larger
frames.b <- add_progress(frames, colour = "red", size = 2.5)
frames.b[[100]]
}