Skip to contents

Generates visualizations comparing edges of two networks.

Usage

plot_edges_comparison(
  network_table,
  ground_truth,
  color_pattern = list(predicted = "gray", ground_truth = "#bb141a", overlap = "#1966ad",
    total = "#6C757D")
)

Arguments

network_table

A data frame of predicted network structure.

ground_truth

A data frame of ground truth network.

color_pattern

A list of colors for different categories.

Value

A patchwork plot object containing network edge comparison and distribution plots

Examples

data(example_matrix)
data("example_ground_truth")
network_table <- inferCSN(example_matrix)
#>  [2025-10-16 02:36:50] Running for <dense matrix>.
#>  [2025-10-16 02:36:50] Checking input parameters...
#>  [2025-10-16 02:36:50] Using `L0` sparse regression model
#>  [2025-10-16 02:36:50] Using 1 core
#>  [2025-10-16 02:36:50] Running [1/18] ETA:  0s
#>  [2025-10-16 02:36:50] Completed 18 tasks in 196ms
#> 
#>  [2025-10-16 02:36:50] Building results
#>  [2025-10-16 02:36:50] Run done.
plot_edges_comparison(
  network_table,
  example_ground_truth
)