| plot_heatmap | R Documentation |
Heat map of a matrix or of a long data frame
plot_heatmap(
data,
x = NULL,
y = NULL,
value = NULL,
annotate = FALSE,
cmap = "RdYlBu",
title = NULL
)
data |
Long data frame (with |
x |
Column for the columns of the heat map ( |
y |
Column for the rows |
value |
Column for the colour |
annotate |
Write the value in each cell |
cmap |
Diverging palette name from |
title |
Plot title |
ggplot object
plot_heatmap(cor(mtcars[, 1:4]), annotate = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.