Skip to contents

Creates a formatted node table for visualisation with visNetwork. Includes styling and formatting for interactive network display.

Usage

visNetwork_nodes(
  mcmodule,
  variate = 1,
  color_pal = NULL,
  color_by = NULL,
  inputs = FALSE
)

Arguments

mcmodule

(mcmodule object). Module containing network structure.

variate

(integer). Which variate to extract. Default: 1.

color_pal

(character vector, optional). Custom colour palette for nodes. Default: NULL.

color_by

(character, optional). Column name to determine node colours. Default: NULL.

inputs

(logical). If TRUE, include non-node inputs. Default: FALSE.

Value

A data frame formatted for visNetwork with columns: id, label, color, grouping, expression, and title (hover text).