Seurat Figure legend
0
0
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

enter image description here

single cell • 571 views
ADD COMMENT

Login before adding your answer.

Traffic: 2039 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6