visNetwork
object. Using the javascript interface visConfigure.R/visNetworkEditor.R
visNetworkEditor-module.Rd
Module shiny for visualize and customize and get back a visNetwork
object.
Using the javascript interface visConfigure.
list
shiny input
list
, shiny output
list
, shiny session
a visNetwork
object. Must be a reactive.
: see visConfigure. Must be a reactive.
: see visConfigure. Must be a reactive.
character
id of module, linked to visNetworkEditorUI
: logical. Add a button for quit shiny and get back network in R ?
: height of the configuration div. Default to "700px"
See online documentation https://datastorm-open.github.io/visNetwork/
if (FALSE) { # \dontrun{
nodes <- data.frame(id = 1:3, label = paste("Node", 1:3))
edges <- data.frame(from = c(1,2), to = c(1,3), label = paste("Edge", 1:2))
network <- visNetwork(nodes, edges)
shiny::shinyApp(ui = shiny::fluidPage(
visNetworkEditorUI(id = "id1")),
server = function(input, output, session) {
shiny::callModule(visNetworkEditorServer, "id1", object = shiny::reactive(network))
})
} # }