anim_animate: Modified the ggplot object

View source: R/anim-animate.R

anim_animateR Documentation

Modified the ggplot object

Description

This function will modify the ggplot object before the user can pass it to the rendering of choice.

Usage

anim_animate(plot)

Arguments

plot

ggplot object

Value

A gganimate object if the rendering is gganimate or a ggplot object if the rendering is plotly.

Examples

animbook <- anim_prep(data = osiris, id = ID, values = sales, time = year, group = japan)

plot <- wallaby_plot(animbook)

animate <- anim_animate(plot)

plotly::ggplotly(animate)


animbook documentation built on June 22, 2024, 7:14 p.m.