recharts (version 0.0.302)

eForce: Force network graph

Description

ECharts style Force network graph visulize the social network matrix data.

Usage

eForce(networkMatrix, propertyDf = 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
option of ECharts.

Value

The HTML code as a character string.

Examples

Run this code
testData <- matrix(1:25, nrow=5)
plot(eForce(testData))

Run the code above in your browser using DataLab