Description Usage Arguments Value Author(s) See Also Examples
This function adds character labels such as title or axis labels to animation frames created with frames_spatial
.
1 2 3 4 5 6 7 8 9 10 | add_labels(
frames,
title = waiver(),
subtitle = waiver(),
caption = waiver(),
tag = waiver(),
x = waiver(),
y = waiver(),
verbose = TRUE
)
|
frames |
list of |
title |
character, frame title. If |
subtitle |
character, frame subtitle. If |
caption |
character, frame caption. If |
tag |
character, frame tag. If |
x |
character, label of the x axis. If |
y |
character, label of the y axis. If |
verbose |
logical, if |
List of frames.
Jakob Schwalb-Willmann
frames_spatial
frames_graph
animate_frames
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | 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]]
frames <- frames_spatial(m, r_list = r_list, r_times = r_times, r_type = "gradient",
fade_raster = TRUE)
# add labels to frames:
frames <- add_labels(frames, title = "Example animation using moveVis::add_labels()",
subtitle = "Adding a subtitle to frames created using frames_spatial()",
caption = "Projection: Geographical, WGS84. Sources: moveVis examples.",
x = "Longitude", y = "Latitude")
# have a look at one frame
frames[[100]]
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.