Skip to contents

Plot coefficients for multiple targets

Usage

plot_coefficients(data, targets = NULL, nrow = NULL, ...)

Arguments

data

Input data.

targets

Targets to plot. Default is `NULL`.

nrow

Number of rows for the plot. Default is `NULL`.

...

Other arguments passed to [plot_coefficient].

Value

A list of ggplot objects

Examples

data(example_matrix)
network_table <- inferCSN(
  example_matrix,
  targets = c("g1", "g2", "g3")
)
#>  [2026-01-23 02:15:59] Inferring network for <matrix/array>...
#>  [2026-01-23 02:15:59] Checking parameters...
#>  [2026-01-23 02:15:59] Using L0 sparse regression model
#>  [2026-01-23 02:15:59] Using 3 targets
#>  [2026-01-23 02:15:59] Using 1 core
#>  [2026-01-23 02:15:59] Running for g1 [1/3] ■■■■■■■■■■■                     
#>  [2026-01-23 02:15:59] Completed 3 tasks in 72ms
#> 
#>  [2026-01-23 02:15:59] Building results
#>  [2026-01-23 02:15:59] Inferring network done
#>  [2026-01-23 02:15:59] Network information:
#>                          Edges Regulators Targets
#>                        1    51         18       3
plot_coefficients(network_table, show_values = FALSE)

plot_coefficients(network_table, targets = "g1")