Skip to contents

Plot contrast networks

Usage

plot_contrast_networks(
  network_table,
  degree_value = 0,
  weight_value = 0,
  legend_position = "bottom"
)

Arguments

network_table

The weight data table of network.

degree_value

Degree value to filter nodes. Default is 0.

weight_value

Weight value to filter edges. Default is 0.

legend_position

The position of legend. Default is "bottom".

Value

A ggplot2 object.

Examples

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