anim_ist: Animate chart

Description Usage Arguments Examples

View source: R/animate.R

Description

Animate chart.

Usage

1
anim_ist(p, type, anim, begin, dur, from, to, easing, ...)

Arguments

p

a chartist object.

type

chart element type to animate (i.e.: line, or grid).

anim

animation (i.e.: opacity).

begin

begin index.

dur

duration of animation in ms.

from

start of animation.

to

end of animation.

easing

apply easing.

...

any other param to pass to anim.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
mtcars %>%
    chart_ist(wt) %>%
    add_ist(disp) %>%
    add_ist(hp) %>%
    anim_ist(type = c("line", "point"),
        anim = "opacity",
        begin = 0,
        from = 0,
        to = 1,
        dur = 2000)

JohnCoene/chartist documentation built on May 7, 2019, 11:17 a.m.