Examples for 'visNetwork::visLayout'


Network visualization layout options

Aliases: visLayout

Keywords:

### ** Examples


nodes <- data.frame(id = 1:10)
edges <- data.frame(from = round(runif(8)*10), to = round(runif(8)*10))

# fix seed, so you retrieve same network each time...!
visNetwork(nodes, edges) %>%
 visLayout(randomSeed = 123)
Error in loadNamespace(name): there is no package called 'webshot'
visNetwork(nodes, edges) %>%
 visLayout(randomSeed = 123)
Error in loadNamespace(name): there is no package called 'webshot'
# hierarchical
visNetwork(nodes, edges) %>%
 visLayout(hierarchical = TRUE)
Error in loadNamespace(name): there is no package called 'webshot'
visNetwork(nodes, edges) %>%
 visHierarchicalLayout(direction = "LR")
Error in loadNamespace(name): there is no package called 'webshot'

[Package visNetwork version 2.1.2 Index]