R/visual.R
plot_dotplot_heatmap.Rd
Get the dotplot-heatmap for cell-type-specific enhancer regulons (eRegulons)
plot_dotplot_heatmap(
obj = NULL,
cts.en.regs = NULL,
n.regs = 5,
celltype.col = "seurat_clusters",
dot = "AC",
peak.assay = "ATAC",
ht.colours = c((grDevices::colorRampPalette(c("#99D5FF", "#E8F9FD")))(3), "#fffaf7",
(grDevices::colorRampPalette(c("#ffe4e1", "#ee7261")))(3)),
ht.breaks = NULL,
font.size = 15,
text.font = "Arial",
angle = 30,
celltypes = NULL,
vjust = 1,
hjust = 1,
celltype.colours = NULL
)
A Seurat
object, NULL by default
The list of cell-type-specific enhancer regulons (eRegulons)
The number of top-ranked eRegulons for plotting, 5 by default
The metadata column indicating cell types, "seurat_clusters" by default
What dot sizes represent, "AC" by default
The assay denoting chromatin accessibility, "ATAC" by default
Color list used to define the gradients of the heatmap, c( grDevices::colorRampPalette(c("#99D5FF", "#E8F9FD"))(3), "#fffaf7", grDevices::colorRampPalette(c("#ffe4e1", "#ee7261"))(3) ) by default
The breaks marked on the legend of heatmap colors
The font size of legends
The text font of legends
The angle of labels of the x-axis in the heatmap, 30 by default
The list of cell types arranged in an order defined by users
Adjustment of positions in the vertical direction, 1 by default
Adjustment of positions in the horizontal direction, 1 by default
The list of colors of cell types in the row annotations