enrichplot icon indicating copy to clipboard operation
enrichplot copied to clipboard

Parameter for adjusting font size in treeplot

Open thegrebe opened this issue 8 months ago • 0 comments

Hi there,

Thanks for the very useful package!

Not sure if this is a bug or a feature request, but here it is:

the fontsize parameter from the treeplot() function only adjusts the size of the clade, and doesn't affect the size of leaves. From the source code, treeplot option fontsize is not used in initial call to ggtree, but is then used in add_cladelab.

Here is a (quite extreme) example:

Image

My attempts to fix that using geom_tiplab failed as it superimposes an additional layer with the leaves/tips names, which are then duplicated.

Cheers, Theo

Edit : this is with enrichplot_1.18.0

thegrebe avatar Jun 10 '25 14:06 thegrebe