powered by
This function will modify the ggplot object before the user can pass it to the rendering of choice.
anim_animate(plot)
A gganimate object if the rendering is gganimate or a ggplot object if the rendering is plotly.
ggplot object
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