init {echarts4r} | R Documentation |
Initialise
Description
Initialise a chart.
Usage
e_charts(
data,
x,
width = NULL,
height = NULL,
elementId = NULL,
dispose = TRUE,
draw = TRUE,
renderer = "canvas",
timeline = FALSE,
...,
reorder = TRUE
)
## Default S3 method:
e_charts(
data,
x,
width = NULL,
height = NULL,
elementId = NULL,
dispose = TRUE,
draw = TRUE,
renderer = "canvas",
timeline = FALSE,
...,
reorder = TRUE
)
## S3 method for class 'Node'
e_charts(
data,
x,
width = NULL,
height = NULL,
elementId = NULL,
dispose = TRUE,
draw = TRUE,
renderer = "canvas",
timeline = FALSE,
...,
reorder = TRUE
)
e_charts_(
data,
x = NULL,
width = NULL,
height = NULL,
elementId = NULL,
dispose = TRUE,
draw = TRUE,
renderer = "canvas",
timeline = FALSE,
...,
reorder = TRUE
)
e_chart(
data,
x,
width = NULL,
height = NULL,
elementId = NULL,
dispose = TRUE,
draw = TRUE,
renderer = "canvas",
timeline = FALSE,
...,
reorder = TRUE
)
e_data(e, data, x)
Arguments
data |
A |
x |
Column name containing x axis. |
width , height |
Must be a valid CSS unit (like |
elementId |
Id of element. |
dispose |
Set to |
draw |
Whether to draw the chart, intended to be used with |
renderer |
Renderer, takes |
timeline |
Set to |
... |
Any other argument. |
reorder |
Set the |
e |
An object of class |
Timeline
The timeline feature currently supports the following chart types.
Examples
mtcars |>
e_charts(qsec) |>
e_line(mpg)
points <- mtcars[1:3, ]
mtcars |>
e_charts_("qsec") |>
e_line(mpg) |>
e_data(points, qsec) |>
e_scatter(mpg, color = "red", symbol_size = 20)
[Package echarts4r version 0.4.5 Index]