echarter: Create a echarts object from a particular data type

Description Usage Arguments Details

View source: R/echarter.R

Description

echarter uses 'echart' to draw a particular plot for an object of a particular class in a single command. This defines the S3 generic that other classes and packages can extend.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
echarter(data, ...)

## Default S3 method:
echarter(data, ...)

## S3 method for class 'numeric'
echarter(
  data,
  ...,
  theme = "default",
  width = NULL,
  height = NULL,
  elementId = NULL,
  dispose = TRUE,
  renderer = "canvas"
)

## S3 method for class 'character'
echarter(
  data,
  ...,
  theme = "default",
  width = NULL,
  height = NULL,
  elementId = NULL,
  dispose = TRUE,
  renderer = "canvas"
)

## S3 method for class 'ts'
echarter(
  data,
  ...,
  theme = "default",
  width = NULL,
  height = NULL,
  elementId = NULL,
  dispose = TRUE,
  renderer = "canvas"
)

## S3 method for class 'forecast'
echarter(
  data,
  addOriginal = TRUE,
  addLevels = TRUE,
  fillOpacity = 0.1,
  name = NULL,
  ...,
  theme = "default",
  width = NULL,
  height = NULL,
  elementId = NULL,
  dispose = TRUE,
  renderer = "canvas"
)

Arguments

data

A data object.

...

Additional arguments for the data series (https://echarts.apache.org/zh/option.html#series).

addOriginal

Logical value to add the original series or not.

addLevels

Logical value to show predictions bands.

fillOpacity

The opacity of bands.

name

The name of the series.

Details

Run methods(echart) to see what objects are supported.


jeevanyue/echarter documentation built on Oct. 16, 2020, 5:12 a.m.