e_single_axis: Single Axis

View source: R/grid.R

e_single_axisR Documentation

Single Axis

Description

Setup single axis.

Usage

e_single_axis(e, index = 0, ...)

Arguments

e

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

index

Index of axis to customise.

...

Any other option to pass, check See Also section.

Examples

df <- data.frame(
  axis = LETTERS[1:10],
  value = runif(10, 3, 20),
  size = runif(10, 3, 20)
)

df |>
  e_charts(axis) |>
  e_single_axis() |> # add the single axis
  e_scatter(
    value,
    size,
    coord_system = "singleAxis"
  )

echarts4r documentation built on July 9, 2023, 7:26 p.m.