anim_animate {animbook}R 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)


[Package animbook version 1.0.0 Index]