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

Add options for justification (e.g. vjust and hjust similar to geom_text()) #101

Closed
rasmus87 opened this issue Jan 31, 2024 · 1 comment · Fixed by #102
Closed

Add options for justification (e.g. vjust and hjust similar to geom_text()) #101

rasmus87 opened this issue Jan 31, 2024 · 1 comment · Fixed by #102
Assignees
Milestone

Comments

@rasmus87
Copy link

Is your feature request related to a problem? Please describe.
Figure edge position is figure and size dependent, since they all centre on the center of the figure.

Describe the solution you'd like
It would be nice with an option like hjust and vjust (as in geom_text()), where vjust = .5 is default figure centre, and vjust = 0 means bottom edge of the figure is exactly on the provided y, and vjust = 1, means the top edge of the figure is exactly on the provided y.

Additional context
An example figure here, where I wish to put all the phylopics bottom edges aligned with the bottom border of the plot:
ExtinctMammals_

Thanks for the package, and sorry if the option is available and I just couldn't find it.

@willgearty
Copy link
Collaborator

Hi @rasmus87, thanks for the suggestion! I'm currently working on an implementation of hjust and vjust in #102. Feel free to take a peak, although it's still not 100% done yet.

@willgearty willgearty added this to the 1.4.0 milestone Feb 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants