I have a seurat object and I am subsetting it to make a heatmap using dittoHeatmap function.
Here is my code:
my_colors <- seq(-4,4,by=0.01)
dittoHeatmap(subset(obj, subset = condition_cluster %in% c("Pre", "Post")), assay = 'ADT',
genes = rownames(obj[['ADT']]),
annot.by = 'condition_cluster',
use_raster = TRUE,
complex = TRUE,
breaks = my_colors,
cluster_cols = FALSE,
heatmap.colors = colorRampPalette(c("blue", "white", "red"))(801),
)
I want to display the column labels Pre and Post as column labels on the heatmap apart from those being displayed on the legend. How can I do this, since I am also subsetting my seurat obj?
pheatmap
complexheatmap
dittoheatmap