Skip to contents

Nodes are colored by assignment group. Within-group edges use the group color; cross-group (split) edges are drawn in grey with edge labels shown.

Usage

plot_TRACE_network_split_demo(
  demo,
  file = NULL,
  group_colors = NULL,
  vertex_group = NULL,
  vertex_label_data = NULL,
  vertex_label_id_prefix = "FT",
  show_edge_label = TRUE,
  layout = "fr",
  layout_coords = NULL,
  muted_style = FALSE,
  show_legend = FALSE,
  legend_title = "Group",
  plot_title = NULL,
  plot_subtitle = NULL,
  ...
)

Arguments

demo

List returned by [`.trace_find_network_split_demo()`] or loaded from cache.

file

Optional path to save the plot (pdf/png depending on extension).

group_colors

Named vector of colors for assignment groups.

layout

Layout passed to [ggraph::create_layout()] when `layout_coords` is `NULL`.

layout_coords

Optional data.frame with columns `name`, `x`, `y` from [compute_TRACE_network_layout()]. Reuse across panels for aligned layouts.

muted_style

If `TRUE`, draw grey semi-transparent edges and borders so node labels remain readable.

show_legend

If `TRUE`, show a fill legend for node groups.

legend_title

Legend title when `show_legend = TRUE`.

plot_title

Optional plot title; defaults to the demo component label.

plot_subtitle

Optional subtitle; defaults to cached compound subtitle.

...

Passed to [ggplot2::theme()].

Value

Invisibly, a `ggplot` object suitable for [MSdev::open_plot_win()].