visNetworkEditor-module | R Documentation |
visNetwork
object.
Using the javascript interface visConfigure.Module shiny for visualize and customize and get back a visNetwork
object.
Using the javascript interface visConfigure.
visNetworkEditorServer( input, output, session, object, filter = shiny::reactive(NULL), showButton = shiny::reactive(NULL) ) visNetworkEditorUI(id, quitButton = FALSE, height = "700px")
input |
|
output |
|
session |
|
object |
a |
filter |
: see visConfigure. Must be a reactive. |
showButton |
: see visConfigure. Must be a reactive. |
id |
|
quitButton |
: logical. Add a button for quit shiny and get back network in R ? |
height |
: height of the configuration div. Default to "700px" |
See online documentation https://datastorm-open.github.io/visNetwork/
visConfigure, visTree, visNetworkEditor
## Not run: 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)) }) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.