Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set xpos per species #296

Open
Estherrr1997 opened this issue Oct 17, 2022 · 1 comment
Open

set xpos per species #296

Estherrr1997 opened this issue Oct 17, 2022 · 1 comment

Comments

@Estherrr1997
Copy link

Hi,

I am using the SankeyNetwork function of D3Network.

I was wondering, does NetworkD3 has a function to set the xpos for a set of nodes? I am using a bigger dataset with 61 links; all from 6 different species. I would like to set an xpos for the 6 species and see the gene flow horizontally, one species per xpos.

Ideally it would look something like this:
0 Pgla_V1_ctg0001 xpos=1
1 elephantNW_024704744.1 xpos=2
2 elephantNW_024704774.1 xpos=2
3 ssNC_052151.1 xpos=3
4 ssNC_052146.1 xpos=3
5 whiteNW_024470908.1 xpos=4

Kind regards!
Esther

@cjyetman
Copy link
Collaborator

No, the position of nodes in {networkD3} are determined algorithmically. The primary purpose of {networkD3} is to create an optimized layout of nodes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants