animate_pag | R Documentation |
Animate the trajectory of devices, while showing the likelihood/event location probabilities (pag), the posterior probabilties (pg) or any other probabilities p. See the vignette of the simulator how they are used.
animate_pag(
rst,
dt,
traj,
cp,
region = NULL,
settings = mobvis_settings_animation(),
title = NA,
filename = "event_location_dev_%s.mp4",
width = 700,
height = 700,
fps = 3
)
animate_pga(
rst,
dt,
traj,
cp,
region = NULL,
settings = mobvis_settings_animation(),
title = NA,
filename = "posterior_dev_%s.mp4",
width = 700,
height = 700,
fps = 3
)
animate_p(
rst,
dt,
traj,
cp,
region = NULL,
settings = mobvis_settings_animation(),
title = NA,
filename = "prob_dev_%s.mp4",
width = 700,
height = 700,
fps = 3
)
rst |
raster |
dt |
data.table for |
traj |
sf object with the following columns: |
cp |
sf object of the cellplan |
region |
sf object containing the region borders |
settings |
settings of the animation. By default |
title |
title of the animation. Can be either gif or mp4. Use the percentages for the device id. |
filename |
filename. Can be either gif or mp4. Use percentage signs for the time id. |
width |
width of the animation |
height |
height of the animation |
fps |
frame per second |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.