Entering edit mode
10 months ago
synat.keam
▴
100
Dear All,
I am wondering whether you could help me how I could put the number of cluster inside the legend color of Seurat cluster in DimPlot and cluster annotation next to it (Kindly see picture attached). I would like have it in Rectangle shape!
Is there a way we can do simultaneously by keeping cluster number in the UMAP and having cluster number and annotation in the figure legend as shown in the attached picture. Thank for your help in advance!
I try this code, but it did not work!
DimPlot(seurat.obj, reduction = "umap", label = TRUE, label.size = 3.5) +
geom_text(aes(label= seurat_clusters), color = "black", size = 5, nudge_x = -0.1, nudge_y = -0.1)
Kind Regards,
synat