| visNetwork_nodes | R Documentation |
Creates a formatted node table for visualization with visNetwork. Includes styling and formatting for network visualization.
visNetwork_nodes(
mcmodule,
variate = 1,
color_pal = NULL,
color_by = NULL,
inputs = FALSE
)
mcmodule |
An mcmodule object containing the network structure |
variate |
Integer specifying which variate to extract (default: 1) |
color_pal |
Custom color palette for nodes (optional) |
color_by |
Column name to determine node colors (optional) |
inputs |
Include non-node inputs: data-sets, data-frames and columns (optional) |
A data frame formatted for visNetwork with columns:
id: Unique node identifier
color: Node color based on type/category
grouping: Module association
expression: Node expression or type
title: Hover text containing node details
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.