View source: R/matrixAsNetwork.R
matrixAsNetworkServer | R Documentation |
Make a network graph representation of matrix data using 'visNetwork'
matrixAsNetworkServer(
id,
mdata,
mfilter,
background = NULL,
.nodes = NULL,
.edges = NULL,
.options = NULL,
.interaction = list(multiselect = TRUE, navigationButtons = TRUE),
randomSeed = NULL
)
id |
Namespace id for module. |
mdata |
Reactive matrix data from |
mfilter |
Reactive filter values from |
background |
Optional background color for network graph. |
.nodes |
Node options passed to |
.edges |
Edge options passed to |
.options |
Options passed to |
.interaction |
Interaction options passed to |
randomSeed |
A seed number for reproduceable graph layout. |
This is a module with a visNetwork plot as its main output, meant to implement an alternative view of data as a graph. As the name of the module suggests, that data should be in matrix form; the module can use whatever is returned by the 'matrixCtrl' module. Multi-selection of nodes is set as the default interaction, so return is the currently selected nodes as a character vector node IDs (this can be changed to single select).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.