egrid: Customise grid

Description Usage Arguments See Also Examples

View source: R/options.R

Description

Customise grid

Usage

1
2
3
egrid(p, backgroundColor = NULL, borderWidth = 1, borderColor = NULL,
  width = NULL, height = NULL, z = 0, zlevel = 0, x = 80, y = 60,
  x2 = 80, y2 = 80)

Arguments

p

an echart object.

backgroundColor

background color.

borderWidth

border width.

borderColor

border color.

width, height

dimensions of grid.

z, zlevel

first and second grade cascading control, the higher z the closer to the top.

x, y

ordinate on upper left corner.

x2, y2

ordinate on upper right corner.

See Also

official grid docs

Examples

1
2
3
4
5
6
df <- data.frame(x = 1:20, y = runif(20, 5, 20))

df %>%
  echart(x) %>%
  eline(x) %>%
  egrid(borderWidth = 5, borderColor = "red", backgroundColor = "yellow")

JohnCoene/echarts documentation built on May 22, 2021, 6:18 p.m.