eForce: Force network graph

Description Usage Arguments Value Examples

View source: R/eForce.R

Description

ECharts style 力导向图 graph visulize the social network matrix data.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
eForce(networkMatrix, propertyDf = NULL, size = NULL, maxR = 25,
  minR = 15, density = 0.05, attractiveness = 1.2,
  showLabel = TRUE, theme = "default", title = NULL,
  subtitle = NULL, title.x = "center", title.y = "top",
  legend = TRUE, legend.x = "left", legend.y = "top",
  legend.orient = "horizontal", toolbox = TRUE,
  toolbox.orient = "horizontal", toolbox.x = "right",
  toolbox.y = "top", dataView = FALSE, readOnly = TRUE,
  mark = TRUE, dataZoom = FALSE, tooltip = TRUE,
  tooltip.trigger = "item", formatter = "", calculable = FALSE,
  xlab = NULL, ylab = NULL, opt = list())

Arguments

networkMatrix

required, a symmetric matrix, each cell value indicates the weight of the two nodes and the 0 or NA cell would not be counted in. The matrix should have colnames or rownames.

propertyDf

optional, dataframe which contain the metadata for the nodes. It could contain category, value and color columns. The colnames and rownames are required.

opt

力导向图选项.

Value

The HTML code as a character string.

Examples

1
2
testData <- matrix(1:25, nrow=5) #测试中文
eForce(testData)

taiyun/recharts documentation built on Aug. 29, 2020, 3:17 a.m.