View source: R/navr-visualising.R
animate_path | R Documentation |
The timing of the plot animation is built arount the plot$data$timestamp field,
which is added in the plot_path
function. If you didn't create your plot in this way, you can either
add the field to the ggplot list data, or you can animate the path in a different way
animate_path(plt, ...)
plt |
Needs to have timestamp x value |
... |
Calls transition_reveal
from the gganimate package to plot the path, but
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.