UMAP labeling manipulation
1
0
Entering edit mode
3 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 • 659 views
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

0
Entering edit mode
12 weeks 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()

0
Entering edit mode

Thank you!