View source: R/ACutils_export.R
ACheatmap | R Documentation |
It plots the heatmap of a given matrix. It is usefull because it allows the user to use custom, non-symmetric palettes, centered around a desired value.
ACheatmap( Mat, center_value = 0, col.upper = "darkred", col.center = "grey95", col.lower = "#3B9AB2", col.n_breaks = 59, use_x11_device = TRUE, remove_diag = FALSE, main = " ", x_label = " ", y_label = " ", horizontal = TRUE )
Mat |
the matrix to be plotted. |
center_value |
the value around which the palette has to be centered. Set NULL for symmetric palette. |
col.upper |
the color for the highest value in the matrix. |
col.center |
the color for the centered value (if desired) or for the middle value in the matrix (oterhwise). |
col.lower |
the color for the lowest value in the matrix. |
col.n_breaks |
has to be odd. The refinement of the palette. |
use_x11_device |
boolean, if x11() device has to be activated or not. |
remove_diag |
boolean, if the diagonal has to be removed or not. |
main |
the title of the plot. |
x_label |
the name of the x-axis in the plot. |
y_label |
the name of the y-axis in the plot. |
horizontal |
boolean, if the heatmap bar has to be horizontal or not. |
this function does not return anything
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.