I am currently working on a project in Rshiny using the visNetwork package to create interactive network diagrams. I’ve successfully generated a network diagram, but I’m facing a challenge with preserving the layout after dragging and dropping nodes. I can only save the initial shape.
After rearranging the nodes in the network to my satisfaction, I want to save the new layout so that the next time I load the network, it retains the positions of the nodes as I left them. However, I’m not sure how to capture and store the positions after the nodes have been manually moved.
I hope to be able to save the drag and drop flowchart shapes on shiny and download them locally in png format.
Has anyone dealt with this issue before? If so, could you share how you managed to save and reload the network with the nodes in their new positions? Any tips or code snippets would be greatly appreciated.
Thank you in advance for your help!
2