Replies: 2 comments
-
I found that by switching the imagerow and imagecol and flipping the y axis order, it would be back in the same orientation as the image
|
Beta Was this translation helpful? Give feedback.
-
The usual convention for scatter charts is that the positive x direction is right from the origin and the positive y direction is up from the origin. ggplot2 is designed for statistical visualization and follows this convention. The usual convention for raster images is that the origin is at the top left and pixel coordinates are non-negative, meaning that the positive x direction is right from the origin and the positive y direction is down from the origin. Visium spots are numbered analogously to pixels in a raster image. As @bshihlab mentioned, if you want to make a ggplot2 visualization of the slide, you will have to add |
Beta Was this translation helpful? Give feedback.
-
I plotted spatial spots from visium experiment using both SpatialFeaturePlot and using seurat @images coordinates. It seems that the y axis is inverted in brain@images . Is there some explanation ?
Thank you
Beta Was this translation helpful? Give feedback.
All reactions