Learn R Programming

g2r (version 0.1.0)

G2animation: Animations

Description

Helper function to build animations.

Usage

Animation

new_animation()

Arguments

Format

An object of class R6ClassGenerator of length 24.

Examples

Run this code
# NOT RUN {
# create animation
anim <- Animation$
  new()$
  appear(duration = 2000, delay = 500)

iris %>% 
  g2(asp(Sepal.Length, Sepal.Width, color = Species)) %>% 
  fig_point(anim) # pass animation to the geom

# }

Run the code above in your browser using DataLab