Add a radar chart
Arguments
- e
An
echarts4r
object as returned bye_charts
or a proxy as returned byecharts4rProxy
.- serie
Column name of serie to plot.
- max
Maximum value.
- name
name of the serie.
- legend
Whether to add serie to legend.
- rm_x, rm_y
Whether to remove x and y axis, defaults to
TRUE
.- ...
Any other option to pass, check See Also section.
- radar
A
list
of options to pass to theradar
rather than the serie, see official documentation alternatively, use thee_radar_opts
.
Examples
df <- data.frame(
x = LETTERS[1:5],
y = runif(5, 1, 5),
z = runif(5, 3, 7)
)
df |>
e_charts(x) |>
e_radar(y, max = 7) |>
e_radar(z) |>
e_tooltip(trigger = "item")