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