R: Module shiny for visualize and customize and get back a...

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` | `list` shiny input
`output` | `list`, shiny output
`session` | `list`, shiny session
`object` | a `visNetwork` object. Must be a reactive.
`filter` | : see visConfigure. Must be a reactive.
`showButton` | : see visConfigure. Must be a reactive.
`id` | `character` id of module, linked to visNetworkEditorUI
`quitButton` | : logical. Add a button for quit shiny and get back network in R ?
`height` | : height of the configuration div. Defaut to "700px"

### References

See online documentation http://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.0.4 Index]