Plot coefficients
plot_coefficient(
data,
style = "continuous",
positive_color = "#3d67a2",
negative_color = "#c82926",
neutral_color = "#cccccc",
bar_width = 0.7,
text_size = 3,
show_values = TRUE
)
Input data.
Plotting style: "binary", "gradient", or "continuous".
Color for positive weights.
Color for negative weights.
Color for weights near zero (used in "continuous" style).
Width of the bars.
Size of the text for weight values.
Logical, whether to show weight values on bars.
A ggplot object
data("example_matrix")
network_table <- inferCSN(example_matrix, targets = "g1")
#> ✔ Running for <dense matrix>.
#> ✔ Checking input parameters.
#> ✔ Using 1 target(s).
#> ✔ Using L0 sparse regression model.
#> ✔ Using 1 core.
#> ✔ Run done.
plot_coefficient(network_table)
plot_coefficient(network_table, style = "binary")