matrixAsNetworkServer: Server module server for network graph

View source: R/matrixAsNetwork.R

matrixAsNetworkServerR Documentation

Server module server for network graph

Description

Make a network graph representation of matrix data using 'visNetwork'

Usage

matrixAsNetworkServer(
  id,
  mdata,
  mfilter,
  background = NULL,
  .nodes = NULL,
  .edges = NULL,
  .options = NULL,
  .interaction = list(multiselect = TRUE, navigationButtons = TRUE),
  randomSeed = NULL
)

Arguments

id

Namespace id for module.

mdata

Reactive matrix data from matrixCtrlServer.

mfilter

Reactive filter values from matrixCtrlServer.

background

Optional background color for network graph.

.nodes

Node options passed to visNodes.

.edges

Edge options passed to visEdges.

.options

Options passed to visOptions.

.interaction

Interaction options passed to visInteraction. The default enables 'multiselect'.

randomSeed

A seed number for reproduceable graph layout.

Details

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).


avucoh/DIVE documentation built on Aug. 29, 2023, 6:02 p.m.