lanim_ist: Line and area chart animation

Description Usage Arguments Examples

View source: R/animate.R

Description

Out of the box animation for line and/or area chart.

Usage

1
lanim_ist(p, type = c("line", "area"))

Arguments

p

a chartist object.

type

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

Examples

1
2
3
4
5
6
7
mtcars %>%
    chart_ist(wt) %>%
    add_ist(disp, name = "disp") %>%
    add_ist(hp, name = "hp") %>%
    opt_ist(showPoint = FALSE) %>%
    lineopt_ist(name = "hp", showArea = TRUE) %>%
    lanim_ist()

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