Description Usage Arguments Examples
Makes a reactive version of the given function that returns a graph object of qrage. D3 JavaScript was created by Michael Bostock. See http://d3js.org/ and, more specifically for Force Directed Graph https://github.com/mbostock/d3/wiki/Force-Layout.
1 | renderQrage(expr,env = parent.frame(),quoted = FALSE)
|
expr |
An expression that returns a graph object of qrage package. |
env |
The environment in which o ecaluate expr. |
quoted |
Is expr a quoted expression(with quote())? This is useful if you want to save an expression in a variable. |
1 2 3 4 5 6 7 | renderQrage({
data(links)
data(nodeColor)
data(nodeValues)
w <- qrage(links,nodeColor=nodeColor,nodeValue=nodeValues,cut=0.1)
return(w)
})
|
function (...)
{
if (length(outputArgs) != 0 && !hasExecuted$get()) {
warning("Unused argument: outputArgs. The argument outputArgs is only ",
"meant to be used when embedding snippets of Shiny code in an ",
"R Markdown code chunk (using runtime: shiny). When running a ",
"full Shiny app, please set the output arguments directly in ",
"the corresponding output function of your UI code.")
hasExecuted$set(TRUE)
}
if (is.null(formals(origRenderFunc)))
origRenderFunc()
else origRenderFunc(...)
}
<environment: 0x148eea0>
attr(,"class")
[1] "shiny.render.function" "function"
attr(,"outputFunc")
function (outputId, width = "100%", height = "400px")
{
shinyWidgetOutput(outputId, "qrage", width, height, package = "qrage")
}
<environment: namespace:qrage>
attr(,"outputArgs")
list()
attr(,"hasExecuted")
<Mutable>
Public:
clone: function (deep = FALSE)
get: function ()
set: function (value)
Private:
value: FALSE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.