forceGraph: Create a force-directed graph widget

Description Usage Arguments

View source: R/d3plot.R

Description

This function creates a force-directed graph using htmlwidgets, which can be rendered in R Markdown documents and shiny applications. The rendering is conducted using a variant of the Sigma which is a JavaScript library dedicated to graph drawing. The force-graph layout algorithm is ForceAtlas2 [http://www.plosone.org/article/info Mathieu Jacomy [https://github.com/jacomyma], Guillaume Plique [https://github.com/Yomguithereal] and Sébastien Heymann. [https://github.com/sheymann].

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
forceGraph(
  nodes,
  links,
  nMappings,
  lMappings,
  options,
  width = NULL,
  height = NULL,
  seriesData = NULL
)

Arguments

nodes

the node information of force-directed graph

links

the link information of force-directed graph

nMappings

indicates which attributes are used for node rendering. The available render options are "id", "size", "color", "scheme", "label", "label_id" and "label_term".

lMappings

indicates which attributes are used for link rendering. The available render options are "source", "target" and "weight".

options

A list of internal meta configurations provided for JavaScript library. Users are highly recommended to modify the detailed rendering options in the shiny report by report.

width

the width of the widget

height

the height of the widget

seriesData

A list of time points in time series analysis.


CityUHK-CompBio/HTSanalyzeR2 documentation built on Dec. 3, 2020, 2:35 a.m.