Multiple UMAPs
#9466
Replies: 1 comment 4 replies
-
Hi, The issue is not with If you want to create multiple PDFs you can write things as for loop or using apply. To save some time though you can use iterative plotting functions from my package scCustomize (https://samuel-marsh.github.io/scCustomize/articles/Iterative_Plotting.html). See by sample is really just any meta.data column you choose so in your case above set Best, |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello All,
I have ten groups in the scRNA study, and I want to know if there is a way to obtain the UMAP output for each group in a different PDF file.
The code pasted below outputs all ten groups as one file
pdf("UMAP_group.pdf", width= 46 , height= 18)
DimPlot(seurat.obj, reduction = "umap", split.by= "group", label = FALSE, ncol = 5, raster=FALSE)
dev.off()
I tried setting combine = FALSE to obtain separate pdf's for each group, however this did not work. Please let me know if you have any suggestions.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions