Network visualization full options setter
visSetOptions(graph, options = NULL)
graph |
: a visNetwork object |
options |
: a named list with all options you want to add to your network. |
See online documentation http://datastorm-open.github.io/visNetwork/
nodes <- data.frame(id = 1:3)
edges <- data.frame(from = c(1,2), to = c(1,3))
# using visNetwork functions
visNetwork(nodes, edges) %>% visNodes(shape = "square", color = "red") %>%
visEdges(arrows = "to")
# directly use visSetOptions
visNetwork(nodes, edges) %>%
visSetOptions(options = list(nodes = list(shape = "square", color = "red"),
edges = list(arrows = "to")))Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.