ecloud: Add wordcloud

Description Usage Arguments See Also Examples

View source: R/add.R

Description

Add wordcloud serie.

Usage

1
2
3
4
5
6
7
8
9
ecloud(p, freq, color, name = NULL, clickable = TRUE,
  center = list("50%", "50%"), size = list("100%", "100%"),
  textRotation = list(0, 90), autoSize = list(enable = TRUE, minSize = 12),
  z = 2, zlevel = 0, tooltip, ...)

ecloud_(p, freq, color = NULL, name = NULL, clickable = TRUE,
  center = list("50%", "50%"), size = list("100%", "100%"),
  textRotation = list(0, 90), autoSize = list(enable = TRUE, minSize = 12),
  z = 2, zlevel = 0, tooltip, ...)

Arguments

p

an echart object.

freq

frequencies.

color

color of terms.

name

name of wordcloud.

clickable

whether terms are clickable.

center

center of cloud.

size

size of cloud.

textRotation

horizontal and vertical text rotation.

autoSize

automatic text size computation.

z, zlevel

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

tooltip

cutomise tooltip.

...

any other argument to pass to funnel.

See Also

official wordcloud docs

Examples

1
2
3
4
5
6
7
tf <- data.frame(terms = c("ECharts", "htmlwidgets", "rstats", "htmltools"),
  freq = c(20, 17, 15, 7), color = c("red", "orange", "yellow", "grey"))

tf %>%
  echart(terms) %>%
  ecloud(freq, color) %>%
  etooltip()

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