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

Resizing xlab with theme_tree2 removes horizontal line #218

Closed
dstern opened this issue Jan 13, 2019 · 0 comments
Closed

Resizing xlab with theme_tree2 removes horizontal line #218

dstern opened this issue Jan 13, 2019 · 0 comments

Comments

@dstern
Copy link

dstern commented Jan 13, 2019

I can add a label to theme_tree2() using xlab, but when I try to resize this label with theme(axis.title.x = element_text(size = N)), the horizontal line on the scale bar is removed. I have tried moving the axis title and many other things. Can't find a solution on Google.
e.g.
This works

ggtree(tree, size=.2, aes(color=group)) + scale_y_reverse() +
theme_tree2() + scale_color_manual(values = c("firebrick","steelblue")) +
xlab(label = "Divergence (amino acid substitutions per site)")

image

But when I try to alter the font size of the title, the horizontal line disappears

ggtree(tree, size=.2, aes(color=group)) + scale_y_reverse() +
theme_tree2() + scale_color_manual(values = c("firebrick","steelblue")) +
xlab(label = "Divergence (amino acid substitutions per site)") +
theme(axis.title.x = element_text(size = 12))

image

GuangchuangYu added a commit that referenced this issue Jan 14, 2019
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