powered by
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 )
A ggplot object
Input data.
Plotting style: "binary", "gradient", or "continuous".
"binary"
"gradient"
"continuous"
Color for positive weights. Default is "#3d67a2".
"#3d67a2"
Color for negative weights. Default is "#c82926".
"#c82926"
Color for weights near zero (used in "continuous" style). Default is "#cccccc".
"#cccccc"
Width of the bars. Default is 0.7.
0.7
Size of the text for weight values. Default is 3.
3
Whether to show weight values on bars. Default is TRUE.
TRUE
data(example_matrix) network_table <- inferCSN(example_matrix, targets = "g1") plot_coefficient(network_table) plot_coefficient(network_table, style = "binary")
Run the code above in your browser using DataLab