Learn R Programming

networkD3 (version 0.1.8)

forceNetworkOutput: Shiny bindings for networkD3 widgets

Description

Output and render functions for using networkD3 widgets within Shiny applications and interactive Rmd documents.

Usage

forceNetworkOutput(outputId, width = "100%", height = "500px")

renderForceNetwork(expr, env = parent.frame(), quoted = FALSE)

sankeyNetworkOutput(outputId, width = "100%", height = "500px")

renderSankeyNetwork(expr, env = parent.frame(), quoted = FALSE)

simpleNetworkOutput(outputId, width = "100%", height = "500px")

renderSimpleNetwork(expr, env = parent.frame(), quoted = FALSE)

treeNetworkOutput(outputId, width = "100%", height = "800px")

renderTreeNetwork(expr, env = parent.frame(), quoted = FALSE)

Arguments

outputId
output variable to read from
width,height
Must be a valid CSS unit (like "100%", "400px", "auto") or a number, which will be coerced to a string and have "px" appended.
expr
An expression that generates a networkD3 graph
env
The environment in which to evaluate expr.
quoted
Is expr a quoted expression (with quote())? This is useful if you want to save an expression in a variable.