animate_path: Animates plot built with plot_path function

View source: R/navr-visualising.R

animate_pathR Documentation

Animates plot built with plot_path function

Description

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

Usage

animate_path(plt, ...)

Arguments

plt

Needs to have timestamp x value

...

Details

Calls transition_reveal from the gganimate package to plot the path, but


hejtmy/navr documentation built on March 3, 2023, 5:24 p.m.