Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust panel size according to bbox when plotting multiple samples #42

Open
lambdamoses opened this issue Dec 20, 2024 · 0 comments
Open
Labels
enhancement New feature or request plotting

Comments

@lambdamoses
Copy link
Collaborator

lambdamoses commented Dec 20, 2024

In functions such as plotSpatialFeature, data from different samples are plotted with facet_wrap. I can't use scales = "free" with geom_sf. So I got this kind of problem which doesn't look good:

image

I want to adjust the size of the facets according to the size of the bounding box. I still want all panels to have the same scale and the same scale in x and y, so it's not entirely free. facet_grid with space = "free" does not work with geom_sf either. The culprit is coord_sf. I don't need the CRS and reprojection stuff here. So I suppose I should write my own internal variant of geom_sf that allows for flipping the y axis to be consistent with other packages (see pachterlab/SpatialFeatureExperiment#47) and can allow for something like space = "free" but not scales = "free".

@lambdamoses lambdamoses added enhancement New feature or request plotting labels Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request plotting
Projects
None yet
Development

No branches or pull requests

1 participant