visNetworkProxy
,
you can update your network without redraw in shiny.visNetworkOutput(outputId, width = "100%", height = "400px")
renderVisNetwork(expr, env = parent.frame(), quoted = FALSE)
visNetworkProxy(shinyId, session = shiny::getDefaultReactiveDomain())
"100%"
,
"400px"
, "auto"
) or a number, which will be coerced to a
string and have "px"
appended.expr
.expr
a quoted expression (with quote()
)? This
is useful if you want to save an expression in a variable.visNetworkProxy
, you can update your network and use various methods :
visOptions
, visNodes
, visEdges
, visPhysics
, ...}
visFocus
visFit
visUpdateNodes
visUpdateEdges
visRemoveNodes
visRemoveEdges
visSelectNodes
visSelectEdges
visSetSelection
visRedraw
, visStabilize
, visSetData
, visGetPositions
,
, visMoveNode
, visUnselectAll
}# have a look to :
shiny::runApp(system.file("shiny", package = "visNetwork"))
Run the code above in your browser using DataLab