echord: Add chord

Description Usage Arguments Details See Also Examples

View source: R/add.R

Description

Add chord chart.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
echord(p, name = NULL, sort = "none", sortSub = "none",
  clickable = TRUE, z = 2, zlevel = 0, symbol = NULL,
  symbolSize = NULL, clockWise = FALSE, minRadius = 10, maxRadius = 20,
  ribbonType = TRUE, showScale = FALSE, showScaleText = FALSE,
  padding = 2, ...)

echord_(p, name = NULL, sort = "none", sortSub = "none",
  clickable = TRUE, z = 2, zlevel = 0, symbol = NULL,
  symbolSize = NULL, clockWise = FALSE, minRadius = 10, maxRadius = 20,
  ribbonType = TRUE, showScale = FALSE, showScaleText = FALSE,
  padding = 2, ...)

Arguments

p

an echart object.

name

name of serie.

sort, sortSub

data sorting, none, ascending or descending.

clickable

whether plot is clickable.

z, zlevel

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

symbol

marker, see details for valid values.

symbolSize

of symbol.

clockWise

whether links are displayed in clockwise direction.

minRadius, maxRadius

minimum and maximum radius after mapping to symbol size.

ribbonType

set to TRUE to use ribbons.

showScale

whether the scale will be showed. Only available if ribbonType is true.

showScaleText

whether to show scale text.

padding

distance between each sector.

...

any other options to pass to serie.

Details

Valid values for symbol:

See Also

official scatter options docs

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
set.seed(19880525)
matrix <- matrix(sample(0:1, 100, replace = TRUE, prob = c(0.9,0.6)), nc = 10)

matrix %>%
  echart(LETTERS[1:10]) %>%
  echord()

matrix %>%
  echart(LETTERS[1:10]) %>%
  echord(ribbonType = FALSE)

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