Learn R Programming

animbook (version 1.0.0)

anim_animate: 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)

Value

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

Arguments

plot

ggplot object

Examples

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

plot <- wallaby_plot(animbook)

animate <- anim_animate(plot)

plotly::ggplotly(animate)

Run the code above in your browser using DataLab