Learn R Programming

qrage (version 1.0)

renderQrage: Force Directed Graph Output with the JavaScript

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

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

Run this code
renderQrage({
		  data(links)
    	data(nodeColor)
    	data(nodeValues)
    	w <- qrage(links,nodeColor=nodeColor,nodeValue=nodeValues,cut=0.1)
    	return(w)
})

Run the code above in your browser using DataLab