YuLab-SMU/ggmsa

Text overlapping.

Opened this issue · 2 comments

Hi!
I have an issue with sequences' labels overlapping. An example below:
image
Yes, I can set up width and hight of output figures, but, i'm generating these images in a loop, so, it would be hard to set up each of them.
So, the question: is there any way to fix that? (Firstly I thought that it can be caused by added Logo object, but nope.)
Maybe you can make setting up the font size of labels based on font size of nucleotides/amino acids. It can solve the problem. There should be also a way to check height of text, maybe there is smth like that too.

Thank in advance!

it seems that firstly I missed that it's the known ggplot problem.
Is there any way to set up "auto-size" based on, for example, fixed size of a symbol tile. And then height can be set based on width and again, fixed size of a tile.
(I developed a tool for NGS data visualisation but with python and It was easy to solve it in that way, but i have no idea how it works in R)

theme(axis.text.y = element_text(size = 8),You can solve this problem with the code