e_flip_coords {echarts4r} | R Documentation |
Flip coordinates
Description
Flip cartesian 2D coordinates.
Usage
e_flip_coords(e)
Arguments
e |
An |
Examples
df <- data.frame(
x = LETTERS[1:5],
y = runif(5, 1, 5),
z = runif(5, 3, 10)
)
df |>
e_charts(x) |>
e_bar(y) |>
e_line(z) -> plot
plot # normal
e_flip_coords(plot) # flip
[Package echarts4r version 0.4.5 Index]