1

In the R package visNetwork, if an edge connects a node to itself, is it possible to control where the edge contacts the node?

library(visNetwork)
nodes <- data.frame(id = 1:2)
edges <- data.frame(from = c(1, 1),
 to = c(1, 2),
 arrows = c("to,from", "to"))
visNetwork(nodes, edges)

Imgur

I tried different settings and it seems that the orientation of the same-node edge is always as displayed above. It may be able to edit the points of contact manually but it would be better to be able to set the contact points using an R script.

asked Jun 23, 2023 at 11:26

0

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.