UMAP labeling manipulation
1
0
Entering edit mode
17 months ago

Hey there-- is there a way to decrease the size of UMAP labels (not the key itself, but the actual labels within the UMAP). I've been looking everywhere and can only seem to decrease the size of text within the keys.

Right now, the labels are too big and almost overlap each other on the UMAPs so it looks terrible in terms of aesthetics and resolution.

Thanks!

scrna-seq seurat umap • 2.3k views
ADD COMMENT
0
Entering edit mode

the seurat Dimplot function is a wrapper of the ggplot2. You can fetch the UMAP coordinates in the obj@DimReduc$umap and plot yourself with ggrepel https://cran.r-project.org/web/packages/ggrepel/vignettes/ggrepel.html

ADD REPLY
0
Entering edit mode
17 months ago
Ribo ▴ 40

When you plot the UMAP using Seurat's DimPlot() function, the label.size argument sets the size of labels within the UMAP.

For example:

DimPlot(seurat_object, reduction = 'umap', group.by = 'ident', label = TRUE, label.size = 4) + NoLegend()
ADD COMMENT
0
Entering edit mode

Thank you!

ADD REPLY

Login before adding your answer.

Traffic: 888 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