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, with default values:
*`predicted`* - Color for predicted edges (*`gray`*)
*`ground_truth`* - Color for ground truth edges (*`#bb141a`*)
*`overlap`* - Color for overlapping edges (*`#1966ad`*)
*`total`* - Color for total counts (*`#6C757D`*)
Examples
data("example_matrix")
data("example_ground_truth")
network_table <- inferCSN(example_matrix)
#> ℹ [2025-05-07 09:38:44] Running for <dense matrix>.
#> ℹ [2025-05-07 09:38:44] Checking input parameters.
#> ℹ [2025-05-07 09:38:44] Using L0 sparse regression model.
#> ℹ [2025-05-07 09:38:44] Using 1 core
#> ✔ [2025-05-07 09:38:44] Run done.
plot_edges_comparison(
network_table,
example_ground_truth
)