vis_network: Create an enhanced network visualization of ABC connections

View source: R/visualization.R

vis_networkR Documentation

Create an enhanced network visualization of ABC connections

Description

This function creates an improved network visualization of ABC connections that displays entity types when available, without enforcing type constraints.

Usage

vis_network(
  abc_results,
  top_n = 25,
  min_score = 0.1,
  show_significance = TRUE,
  node_size_factor = 5,
  color_by = "type",
  title = "ABC Model Network",
  show_entity_types = TRUE,
  label_size = 1,
  layout_seed = NULL
)

Arguments

abc_results

A data frame containing ABC results.

top_n

Number of top results to visualize.

min_score

Minimum score threshold for including connections.

show_significance

Logical. If TRUE, highlights significant connections.

node_size_factor

Factor for scaling node sizes.

color_by

Column to use for node colors. Default is 'type'.

title

Plot title.

show_entity_types

Logical. If TRUE, includes entity types in node labels.

label_size

Relative size for labels. Default is 1.

layout_seed

Optional seed for layout reproducibility. If NULL, no seed is set.

Value

NULL invisibly. The function creates a plot as a side effect.


LBDiscover documentation built on June 16, 2025, 5:09 p.m.