Draw a line range area plot.
Usage
e_lineRange(
e,
lower,
upper,
name = "lineRange",
legend = TRUE,
y_index = 0,
x_index = 0,
lineStyle = list(opacity = 0.3, color = "#000", width = 1),
areaStyle = list(opacity = 0.3, color = "#032", width = 1),
...
)
Arguments
- e
An echarts4r object as returned by e_charts or
a proxy as returned by echarts4rProxy.
- lower, upper
series of lower and upper borders of the band
- name
name of the serie.
- legend
Whether to add serie to legend.
- x_index, y_index
Indexes of x and y axis.
- lineStyle
properties of the border lines
- areaStyle
properties of the area between the lines
- ...
additional options
Examples
df <- iris |>
dplyr::group_by(Species) |>
dplyr::summarise(lower = min(Sepal.Length),
upper = max(Sepal.Length))
df |>
e_chart(Species) |>
e_lineRange(lower = lower, upper = upper)