emark_point: mark points

Description Usage Arguments Details Examples

View source: R/helpers.R

Description

mark points

Usage

1
2
3
emark_point(p, which = "previous", data = list(), clickable = TRUE,
  symbol = "pin", symbolSize = 10, symbolRotate = NULL, large = FALSE,
  ...)

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.

...

any other options to pass to mark points.

Details

Valid values for symbol:

Examples

1
2
3
4
5
6
7
8
9
df <- data.frame(x = 1:150,
                 y = round(rnorm(150, mean = 5, sd = 1), 2),
                 z = round(rnorm(150, mean = 7, sd = 1), 2))

df %>%
  echart(x) %>%
  escatter(y) %>%
  escatter(z) %>%
  emark_point(which = "all", data = list(list(type = "min"), list(type = "max")))

JohnCoene/echarts documentation built on May 4, 2018, 8:04 a.m.