Closed hoelzer closed 4 years ago
I also tried adding a pos
column to my nodes like this:
> Taxonomy$nodes
name id pos
1 Viruses 0 0
2 unclassified 1 1
3 Caudovirales 2 1
4 Podoviridae 3 2
5 Autographivirinae 4 3
6 T7likevirus 5 4
7 Myoviridae 6 1
and adding to my command
NodePosX = "pos"
but this did not help (no change)
I found a solution by simply adding
align = "left"
to the sankey code.
Firstly, thanks a lot for this great visualization method!
Secondly, I have a problem that is related to missing ranks of a (virus) taxonomy.
TSV Input
As you can see, I dont have all ranks available for my taxonomy. Now, I translate this table into JSON.
JSON input
and plot this using
That results in this figure:![Screenshot from 2020-03-24 18-23-52](https://user-images.githubusercontent.com/14393703/77457214-ab384800-6dfc-11ea-9632-5d564574fa82.png)
That I can manually adjust to look like this:![Screenshot from 2020-03-24 18-24-46](https://user-images.githubusercontent.com/14393703/77457308-c5722600-6dfc-11ea-8944-658955d8ebcf.png)
Because actually, Podoviridae and Myoviridae belong to the same column in the plot (family).
My question: Is there a way to automatically assign nodes to the correct column like they are written in the TSV?