View source: R/heatmap_basic.R
heatmap_basic | R Documentation |
Generic convenience function to create a heatmap
heatmap_basic( data, x, y, fill, xLab = x, yLab = y, fillLab = fill, plotTitle = "Heatmap", fillScale = ggplot2::scale_fill_viridis_c(), theme = ggplot2::theme_minimal() )
data |
A data frame |
x, y, fill |
The variables (columns) in |
xLab, yLab, fillLab |
The labels to use for the x axis, y axis, and fill, respectively |
plotTitle |
The plot title. |
fillScale |
The fill scale. |
theme |
The theme. |
The heatmap, as a ggplot2 object.
rock::heatmap_basic(mtcars, 'am', 'cyl', 'mpg');
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.