| plot_comparison_heatmap | R Documentation |
Plots a heatmap of the difference between two weight matrices, or of either matrix alone. Rows are source nodes and columns are target nodes.
plot_comparison_heatmap(
x,
y = NULL,
type = c("difference", "x", "y"),
name_x = "x",
name_y = "y",
low_color = "blue",
mid_color = "white",
high_color = "red",
limits = NULL,
show_values = FALSE,
value_size = 3,
digits = 2,
title = NULL,
xlab = "Target",
ylab = "Source"
)
x |
First network: matrix, |
y |
Second network, of the same type and dimensions as |
type |
What to display: |
name_x |
Label for the first network in the default title. |
name_y |
Label for the second network in the default title. |
low_color |
Color for low (negative) values. |
mid_color |
Color for zero. |
high_color |
Color for high (positive) values. |
limits |
Color scale limits. |
show_values |
Logical. Display values in cells? |
value_size |
Text size for cell values. |
digits |
Decimal places for cell values. |
title |
Plot title. |
xlab |
X-axis label. |
ylab |
Y-axis label. |
A ggplot object. The color scale is a diverging gradient with its midpoint at 0.
plot_comparison_heatmap(regulation_net, t(regulation_net))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.