init | R Documentation |
Initialise a chart.
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)
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 |
The timeline feature currently supports the following chart types.
e_bar
e_line
e_step
e_area
e_scatter
e_effect_scatter
e_candle
e_heatmap
e_pie
e_line_3d
e_lines_3d
e_bar_3d
e_lines
e_scatter_3d
e_scatter_gl
e_histogram
e_lm
e_loess
e_glm
e_density
e_pictorial
e_boxplot
e_map
e_map_3d
e_line_3d
e_gauge
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.