This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How to remove the default title to a DimPlot() splitted into two by group.by ?

Hi,

Is it is possible to remove the default title (in the pic below "stim") to a DimPlot() which is splitted into two by group.by.? I want to generate the same type of plot/pannel but I cannot remove the title on the integrated plot. T

p1 <- DimPlot(pbmc, reduction = "umap", group.by = "sample.New") 
p2 <- DimPlot(pbmc, reduction = "umap", label = TRUE)
test <- plot_grid(p1, p2)
title <- ggdraw() + draw_label("Cell 19 cluster only",fontface='bold')
plot_grid(title, test, ncol=1, rel_heights=c(0.1, 1)) 

enter image description here

Thank you!

Camilla

dimplot title seurat

1 answer

p1 <- DimPlot(pbmc, reduction = "umap", group.by = "sample.New") + ggtitle(NULL)

Log in to answer this question.