sjspielman / dragon

Deep time Redox Analysis of the Geobiology Ontology Network
https://sjspielman.shinyapps.io/dragon/
Other
2 stars 1 forks source link

Hold network node positions when changing network cluster method #21

Closed mooreek closed 5 years ago

mooreek commented 5 years ago

Hi,

Currently when I change network clustering method all of the nodes move back to the default location. Is it possible for the network nodes to all stay in the same positions that I have moved them to after changing network cluster methods and when coloring nodes by network cluster?

Thanks, Eli

sjspielman commented 5 years ago

Hi Eli,

Re-clustering the data will always have to rebuild the network. Initial positions can be preserved by using the same random seed, but if you are dragging nodes around there is currently no way to preserve the positions.

I have a sense of how to add the feature in you're looking for, but may take a little bit of time to code this one up. I'll start trying some things out.

-Stephanie

sjspielman commented 5 years ago

I'm pretty sure this has been fixed. Let me know if you encounter niche conditions where it doesn't work.

mooreek commented 5 years ago

Yes, the node positions are staying consistent after being moved around. Thanks!