visNetworkEditor-module {visNetwork} | R Documentation |
Module shiny for visualize and customize and get back a visNetwork
object.
Using the javascript interface visConfigure.
Description
Module shiny for visualize and customize and get back a visNetwork
object.
Using the javascript interface visConfigure.
Usage
visNetworkEditorServer(
input,
output,
session,
object,
filter = shiny::reactive(NULL),
showButton = shiny::reactive(NULL)
)
visNetworkEditorUI(id, quitButton = FALSE, height = "700px")
Arguments
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" |
References
See online documentation https://datastorm-open.github.io/visNetwork/
See Also
visConfigure, visTree, visNetworkEditor
Examples
## 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)
[Package visNetwork version 2.1.2 Index]