e_flip_coords: Flip coordinates

Description Usage Arguments Examples

View source: R/opts.R

Description

Flip cartesian 2D coordinates.

Usage

1

Arguments

e

An echarts4r object as returned by e_charts or a proxy as returned by echarts4rProxy.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
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

JohnCoene/echarts4 documentation built on July 27, 2021, 5:20 p.m.