This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Single Cell Density Scatter Plot with Seruat

I am currently working in a department which requested a figure just like the one seen in Fig 1C in this article. The FeatureScatter function does not appear to allow density functions nor does Nebulosa allow for scatter plots. Does anyone know how create this figure within Seurat?

singlecell seruat

1 answer

Extract the UMAP coordinates with the Embeddings function, and plot them using the geom_pointdensity geometry from ggpointdensity.

Thank you but the X and Y axis need to be expression of two different genes, not UMAP or other graph coordinates.

The same advice applies, but instead of Embeddings use GetAssayData and subset the two genes.

Log in to answer this question.