This function takes an object of class iCellR and genes and provides a heatmap.
heatmap.gg.plot(
x = NULL,
gene = "NULL",
cell.sort = FALSE,
data.type = "main",
cluster.by = "clusters",
conds.to.plot = NULL,
min.scale = -2.5,
max.scale = 2.5,
interactive = TRUE,
cex.col = 10,
cex.row = 10,
no.key = FALSE,
out.name = "plot",
heat.colors = c("blue", "white", "red")
)
An object of class iCellR
A data frame containing gene counts for cells.
A set of gene names to be heatmapped.
If FALSE the cells will not be sorted based on their distance, default = TRUE.
Choose from "main", "atac", atac.imputed and "imputed", default = "main".
Choose from "clusters" or "none", default = "clusters".
Choose the conditions you want to see in the plot, default = NULL (all conditions).
Set a minimum color scale, default = -2.5.
Set a maximum color scale, default = 2.5.
If TRUE an html interactive file will be made, default = TRUE.
Chhose a size, default = 10.
Choose a size, default = 10.
If you want a color legend key, default = FALSE.
Output name for html file if interactive = TRUE, default = "plot".
Colors for heatmap, default = c("blue" ,"white", "red").