Hello,
I just started working with ggtree to visualise phylogenetic trees and so far it works very well.
Now I would like to add some meta data (tab-, csv- or excel-file) based on tree structure.
Ideally it would look similiar to this example:
https://yulab-smu.github.io/treedata-book/chapter7.html#facet_plot
But instead of the SNP and Trait data, I would like to use simple text (tab-, csv- or excel-file).
[Tree//header] [metadata1//header] [metadata2//header] [...//header]
ID1 MetadataForID1 moreMetadataForID1 ...
Is there maybe a simple way to add this kind of data?
Thank you!
Thank you for your answers!
With the help of the following code I am able to add meta data, that is saved in a .txt-file ('d1'):
After aligning the data, I can not remove the lines:
Is there a way to remove the lines for 'sample' and 'metadata'? And is it possible to add a header with a grey background, just like the one in my first post, for 'Sample' and 'metadata'?