Skip to contents

Plot contrast networks

Usage

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

Arguments

network_table

Network edge table.

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)
#>  [2026-08-31 02:40:00] Inferring network for <matrix/array>...
#>  [2026-08-31 02:40:00] Checking parameters...
#>  [2026-08-31 02:40:00] Inferring network done
#>  [2026-08-31 02:40:00] Network information:
#>                          Edges Regulators Targets
#>                        1    12          6       6
plot_contrast_networks(utils::head(network_table, 50))