schlegelp / tanglegram

Plot tanglegrams from two dendrograms
GNU General Public License v3.0
19 stars 4 forks source link

how to plot more than 2 trees? #15

Closed liamxg closed 1 month ago

liamxg commented 1 month ago

Dear @schlegelp,

Could I know how to plot more than 2 trees?

schlegelp commented 1 month ago

Sorry, forgot to respond here. If you install the package straight from Github:

pip3 install git+https://github.com/schlegelp/tanglegram@master

Then you can use the tanglegram_many function to plot as many tanglegram as you want

>>> import tanglegram as tg 
>>> fig = tg.tanglegram_many((data1, data2, data3, data4))

Please see the function's docstring for details.

liamxg commented 1 month ago

thanks @schlegelp