eTimeline: Save recharts into a png/jpg file

Description Usage Arguments Examples

View source: R/eTimeLine.R

Description

This function creates an HTML widget to display matrix, data.frame and factor array, using the JavaScript library ECharts3.

Usage

1
2
3
eTimeline(..., timeLineName = NULL, width = NULL, height = NULL,
  currentIndex = 0, autoPlay = TRUE, loop = TRUE,
  playInterval = 2000, orient = "horizontal", z = 2)

Arguments

...

Echarts object

timeLineName

Name of timeline

width

Width of echarts object

height

Height of echarts object

currentIndex

Indicates which is the currently selected item. For instance, if currentIndex is 0, it indicates that the currently selected item is timeline.data[0] .

autoPlay

Default is TRUE, whether to play automatically.

loop

Default is TRUE, whether to loop playing.

playInterval

Default is 2000, indicates play speed (gap time between two state), whose unit is millisecond.

orient

Orientation of the component, whose valid values are: 'vertical': vertical layout.'horizontal': horizontal layout.

z

z value of all graghical elements in , which controls order of drawing graphical components. Components with smaller z values may be overwritten by those with larger z values.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
x = runif(6)
names(x) = LETTERS[1:6]
e1 = ePie(x) + eTitle("test1")
x = runif(6)
names(x) = LETTERS[1:6]
e2 = ePie(x) + eTitle("test2")
x = runif(6)
names(x) = LETTERS[1:6]
e3 = ePie(x) + eTitle("test3")
x = runif(6)
names(x) = LETTERS[1:6]
e4 = ePie(x) + eTitle("test4")
eTimeline(e1,e2,e3,e4)

cosname/recharts documentation built on Aug. 29, 2020, 9:47 a.m.