renderQrage: Force Directed Graph Output with the JavaScript

Description Usage Arguments Examples

View source: R/qrage.R

Description

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.

Usage

1
renderQrage(expr,env = parent.frame(),quoted = FALSE)

Arguments

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.

Examples

1
2
3
4
5
6
7

Example output

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

qrage documentation built on May 2, 2019, 12:21 p.m.