G2animation: Animations

Description Usage Format Examples

Description

Helper function to build animations.

Usage

1
2
3

Format

An object of class R6ClassGenerator of length 24.

Examples

1
2
3
4
5
6
7
8
# 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

JohnCoene/g2r documentation built on March 6, 2021, 8:11 p.m.