Closed SolayMane closed 2 years ago
Hey,
So if you've saved your plot to the object my_plot
, the heatmap is stored in the my_plot$genotypes
slot. This is a normal ggplot object, so you can edit it using the usual ggplot approach, e.g. to reduce the size of y axis text...
my_plot$genotypes = my_plot$genotypes + theme(axis.text.y = element_text(size = 8))
This will reassign the genotypes
slot with a new heatmap with reduced text size.
There is information in the readme on how to add tip labels to the dendrogram, but the principles are the same, it's a ggtree object that you can edit and reassign. You can't add the same labels as are plotted in your above figure because the clustering rearranges individuals so they may no longer be in the populations defined in the popmap. For cases like yours where it looks as though you have many tips, I would opt to assign population colours, and plot coloured points at each tip. This just saves having lots of cluttered text. For e.g.
Hope this helps! Jim
Thank you for the nice tool. I'm wondering if there is a possibility to adjust the size of the labels and also to add those labels to the dendrogram: