Learn R Programming

recharts (version 0.0.4)

eForce: Force network graph

Description

ECharts style <U+529B><U+5BFC><U+5411><U+56FE> graph visulize the social network matrix data.

Usage

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

<U+529B><U+5BFC><U+5411><U+56FE><U+9009><U+9879>.

Value

The HTML code as a character string.

Examples

Run this code
# NOT RUN {
testData <- matrix(1:25, nrow=5) #<U+6D4B><U+8BD5><U+4E2D><U+6587>
eForce(testData)
# }

Run the code above in your browser using DataLab