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

Specifying tree height and width #643

Open
drdna opened this issue Feb 1, 2025 · 2 comments
Open

Specifying tree height and width #643

drdna opened this issue Feb 1, 2025 · 2 comments

Comments

@drdna
Copy link

drdna commented Feb 1, 2025

It seems there is no way to change tree height to accommodate large numbers of tip labels. I've read suggestions to expand the page size but this will not result in changes in the aspect ratio of the tree which is what is really desired. Functions which work in ggplot (e.g. coord_fixed(ratio = 2)) do not seem to work in ggtree.

@GuangchuangYu
Copy link
Member

coord_fixed(ratio = 2) should work for rectangular layout.

@drdna
Copy link
Author

drdna commented Feb 1, 2025

Plot without coord_fixed(ratio = 2):

Image

Plot with coord_fixed(ratio = 2):

Image

Note the strange behavior and how the y-axis didn't expand to fit page.

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

No branches or pull requests

2 participants