Open ejscience opened 1 year ago
Hi! Thank you for addressing this and for your detailed description of the issue.
As you have noticed, the default spot size does not correspond to the actual size of a capture spot, as this is not the most trivial matter to solve. The data is plotted using ggplot with geom_point()
, and the spot sizes provided (pt_size
) is passed directly to the size argument in geom_point()
. As with other plots created this way and in the cases you're showing here, the point sizes will be kept constant and not change in relation to the plot area (i.e. axis limits, or crop areas in this case). Therefore, you'll here have to manually adjust (increase) the pt_size
when cropping/decreasing the field of view.
Having a default pt_size
that would correspond to the actual spot diameter would of course be a desirable functionality, and is something that we could look into for future updates of semla. Thanks again for highlighting this, and apologies if the current behaviour of pt_size
was not clear from the documentations.
Hope this description answers your question!
Hello!
I'm joining very late here. I just wanted to mention that for VisiumHD this will not be an issue. When plotting the VisiumHD spots on top of the HE, the size of the spots (squares) represents their true size in relation to the HE image.
We are working on a tutorial with basic guidelines/issues encountered when working with this type of data. For a bit more context regarding what we are working on right now, issue #28 could be interesting.
Thanks for using the package! :))
I have loaded some data into an SE object using the following code
From there I was able to graph out my feature plot as a first pass
However, as you can see the pt size is not at the correct 1. Which I assumed was the actual size of the capture dots.
I then tried to zoom in using the crop functions and these seem to be having an issue with my sections
I tried to map with this grid
Then I ran this crop
And this one
Could anyone explain why the dots are not staying the same across either the cropping or the size of the image?