Make main heatmap part of plot for gghm.
make_heatmap(
x_long,
plt = NULL,
mode = "heatmap",
include_diag = TRUE,
invisible_diag = FALSE,
border_lwd = 0.1,
border_col = "grey",
border_lty = 1,
show_names_diag = TRUE,
show_names_x = FALSE,
show_names_y = FALSE,
names_x_side = "top",
names_y_side = "left",
col_scale = NULL,
size_scale = NULL,
cell_labels = FALSE,
cell_label_col = "black",
cell_label_size = 3,
cell_label_digits = 2,
cell_bg_col = "white",
cell_bg_alpha = 0
)
ggplot object with heatmap component.
Long format data.
A ggplot object to build onto. If NULL, makes a new plot.
Plotting mode.
Logical indicating if diagonal should be included.
Logical indicating if an invisible diagonal should be included.
Border linewidth.
Border colour.
Border linetype.
Logical indicating if names should be displayed on the diagonal.
Logical indicating if names should be displayed on the x axis.
Logical indicating if names should be displayed on the y axis.
X axis side.
Y axis side.
Scale for colour/fill aesthetic.
Scale for size aesthetic.
Logical indicating if cell labels should be written or a matrix or data frame (same shape as x_long) with values to write.
Colour of cell labels.
Size of cell labels.
Number of digits for cell labels if numeric.
Cell background colour (fill).
Cell background alpha.