powered by
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() )
The heatmap, as a ggplot2 object.
A data frame
The variables (columns) in data to use for the x axis, y axis, and fill of the heatmap, respectively.
data
The labels to use for the x axis, y axis, and fill, respectively
The plot title.
The fill scale.
The theme.
rock::heatmap_basic(mtcars, 'am', 'cyl', 'mpg');
Run the code above in your browser using DataLab