MarcElosua / SPOTlight

Spatial Transcriptomics Capture Location Deconvolution
https://marcelosua.github.io/SPOTlight
GNU General Public License v3.0
164 stars 25 forks source link

scatter plot circles instead of sctter pie circles #100

Closed cathalgking closed 1 year ago

cathalgking commented 1 year ago

Would it be possible to plot the output of plotSpatialScatterpie as individual scatterplot circles instead of scatterpie circles? For example with geom_point() or some other way. Could I edit the plotSpatialScatterpie function to do this? And if so where can I access the code to do so? Thanks.

MarcElosua commented 1 year ago

Hi @cathalgking

Thank you for using SPOTlight!

Absolutely! The best way to do it is to add the proportions to your object's spot-associated metadata slot - seurat@meta.data or colData(sce). That way you can use their native functions to achieve these plots!