Description Usage Arguments Details
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.
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"
)
|
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. |
Run methods(echart)
to see what objects are supported.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.