earea: Add area

Description Usage Arguments Examples

Description

Add area serie.

Usage

1
2
3
earea(p, serie, name = NULL, stack = NULL, smooth = TRUE, ...)

earea_(p, serie, name = NULL, stack = NULL, smooth = TRUE, ...)

Arguments

p

an echart object.

serie

value column name to plot.

name

of serie.

stack

name of the stack.

smooth

whether to smooth line.

...

any other argument to pass to the serie. i.e.: same parameters as eline or eline_

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
## Not run: 
df <- data.frame(x = LETTERS[1:10], y = runif(10, 30, 70), z = runif(10, 10, 50))

df %>%
  echart_("x") %>%
  earea_("y", smooth = FALSE, symbol = "emptyRectangle", symbolSize = 5)

df %>%
  echart(x) %>%
  earea(y, stack = "grp") %>%
  earea(z, stack = "grp") %>%
  etheme("roma")

df <- data.frame(x = 1:10, y = runif(10, 30, 70), z = runif(10, 10, 50))

df %>%
  echart(x) %>%
  earea(z, stack = "grp") %>%
  earea(y)

## End(Not run)

JohnCoene/echarts documentation built on May 7, 2019, 11:58 a.m.