emark_line: mark line

Description Usage Arguments Details Examples

View source: R/helpers.R

Description

mark line

Usage

1
2
3
4
5
emark_line(p, which = "previous", data = list(), clickable = TRUE,
  symbol = list("circle", "arrow"), symbolSize = list(2, 4),
  symbolRotate = NULL, large = FALSE, smooth = FALSE, precision = 2,
  bundling = list(enable = FALSE, maxTurningAngle = 45), z = 2,
  zlevel = 0, ...)

Arguments

p

an echart object.

which

serie to mark lines of, takes previous, all or name of specific serie.

data

data of mark points, points to mark.

clickable

whether marked points are clickable.

symbol

symbol, see details for valid values.

symbolSize

size of symbol.

symbolRotate

symbol rotation angle, i.e.:30.

large

set to TRUE to optimise for large datasets.

smooth

whether to smooth line.

precision

decimal precision.

bundling

line bundling.

z, zlevel

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

...

any other options to pass to mark points.

Details

Valid values for symbol:

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
df <- data.frame(x = c("Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"),
                 radio = c(320, 332, 301, 334, 390, 330, 320),
                 social = c(120, 132, 101, 134, 90, 230, 210))

df %>%
  echart(x) %>%
  ebar(radio, stack = "grp") %>%
  ebar(social, stack = "grp") %>%
  emark_line(data = list(list(type = "max")), clickable = FALSE) %>%
  etooltip(axisPointer = list(type = "shadow")) %>%
  etoolbox_full() %>%
  etoolbox_magic(type = list("tiled", "stack", "line", "bar"))

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