Description Usage Arguments Details Value Attributes passed by the igraph object Note Author(s) See Also Examples
Method to wrap R graphs into RedeR objects and send it to RedeR app.
1 |
obj |
Object of RedPort Class. |
g |
An igraph object. |
... |
Additional arguments passed to RedeR application. |
Additional arguments:
Vertex coordinates (graph layout). Accepts matrix with 2 cols (i.e. x and y coords) <matrix>.
Expansion factor of the graph area related to the app panel area (default = 75) <numeric>.
Sets the zoom scale for the app panel (range: 0.0 to 100.0; default = 100.0) <numerics>.
Sets the graph x,y center. Coords between 0 and 100 are set to the visible area of the app panel (default = c(50,50)) <numeric vector>.
Logical value, whether to nest all nodes into a new container (default = FALSE). See additional args in nestNodes
If isNest=TRUE, this logical value sets whether to anchor the container in dynamic layouts (default = TRUE).
If isNest=TRUE, this logical value sets whether to assign the container name to the nested nodes (default = FALSE).
Logical value, whether to send edges to RedeR app (default = TRUE).
Some pre-defined nest attributes. Options: 'tm0','tm1','tm2','tm3','tm4','tm5','tm6' <string>. Alternatively, it can be a list with customized attributes.
Logical value, whether to transform nodes in containers (default = FALSE).
ID of a container already available in the app <string>. Nodes from g will be nested to this container.
Submits R graphs to RedeR app.
Sets the background color of the app panel <hexadecimal>.
Sets the zoom scale for the app panel (range: 0.0 to 100.0) (Default=100) <numerics>.
Expansion factor of the graph area related to the app panel (range: 0.0 to 100.0) (Default=100) <numerics> (PS. alternative entry to the 'gscale' argument above).
Sets the graph x center; x between 0 and 100 sets to visible area <numeric> (PS. alternative entry to the 'gcoord' argument above).
Sets the graph y center; y between 0 and 100 sets to visible area <numeric> (PS. alternative entry to the 'gcoord' argument above).
Logical value, whether to send edges to RedeR app (Default=TRUE) (PS. alternative entry to the 'loadEdges' argument above).
Logical value, whether to nest all nodes into a new container (Default=FALSE) (PS. alternative entry to the 'nest' argument above).
If isNest=TRUE, this logical value sets whether to anchor the container in dynamic layouts (Default=FALSE).
If isNest=TRUE, this logical value sets whether to assign the container name to the nested nodes (Default=FALSE).
If isNest=TRUE, this attribute sets the 'color' of the new container <hexadecimal>.
If isNest=TRUE, this attribute sets the label of the new container <string>.
If isNest=TRUE, this attribute sets the size of the container label (Default=12). <numerics>.
If isNest=TRUE, this attribute sets the 'color' of the container label <hexadecimal>.
If isNest=TRUE, this attribute sets the x position of the label related to the container (Default=-8) <numerics>.
If isNest=TRUE, this attribute sets the y position of the label related to the container (Default=-8) <numerics>.
If isNest=TRUE, this attribute sets the shape of the container, options: <'ELLIPSE'> and <'ROUNDED_RECTANGLE'> (Default= ELLIPSE).
If isNest=TRUE, this attribute sets the size of the container (Default=NULL) <numerics>.
If isNest=TRUE, this attribute sets the line width of the container, options: >= 0 (Default=1.0) <numerics>.
If isNest=TRUE, this attribute sets the line color of the container <hexadecimal>.
If isNest=TRUE, sets the status of the container on the screen: <'plain'>, <'transparent'>, or <'hide'> (Default= plain).
If isNest=TRUE, this attribute sets the line type of the container: <'SOLID'>, <'DOTTED'>, <'DOTTED_SHORT'>, <'LONG_DASH'> (Default='SOLID').
Node attribute 'name' <string>.
Node attribute 'alias' <string>.
Node attribute 'bend', options: 0-100% (Default=50) <numeric>.
Node attribute 'x coord' (Default=random coord) <numeric>.
Node attribute 'y coord'(Default=random coord) <numeric>.
Node attribute 'size', options: > 0 (Default=20) <numeric>.
Node attribute 'shape', options: 'ELLIPSE', 'RECTANGLE', 'ROUNDED_RECTANGLE', 'TRIANGLE', 'DIAMOND' (Default= ELLIPSE) <string>.
Node attribute 'color', e.g. "#ff0000" for red <hexadecimal>.
Node attribute 'weight', options: >= 0 (Default=0) <numeric>.
Node attribute 'line width', options: >= 0 (Default=1) <numeric>.
Node attribute 'line color', e.g. "#ff0000" for red <hexadecimal>.
Node attribute 'font size', options: >= 0 (Default=12) <integer>.
Node attribute 'font color', e.g. "#ff0000" for red <hexadecimal>.
Edge attribute 'arrow direction', used to set mixed associations in undirected graphs. Options: 0 (A-B), 1 (A-> B), -1 (A-| B), 2 (A <-B), -2 (A |-B), 3 (A <-> B), -3 (A |-| B), 4 (A |-> B) and -4 (A <-| B) (Default=0) <integer>.
Edge attribute 'arrow type', used to set the association mode in directed graphs. Options: -1, 0 and 1 (Default=1) <integer>.
Edge attribute 'weight', options: >= 0 (Default=0.0) <numeric>.
Edge attribute 'width', options: >=0 (Default=1.0) <numeric>.
Edge attribute 'color', e.g. "#ff0000" for red <hexadecimal>.
Edge attribute 'color', options: 'SOLID', 'DOTTED, 'DOTTED_SHORT', 'LONG_DASH' (Default='SOLID').
Edge arrow attribute 'length', options: > 0 (Default=10) <numeric>.
Edge arrow attribute 'angle', options: 0-90 (Default=45) <numeric>.
Set assignment type either between nodes and containers or containers and containers. Options: 'nested' and 'notnested' (Default='nested') <string>.
In 'igraph' package, vertex and edge attributes can be assigned as arbitrary R objects. In order to pass these extensible features to RedeR the attributes must be provided in a valid syntax (see above). Only UNIQUE edges are accepted. If present, mutual/multiple edges will be collapsed to unique edges. In this cases, source-target information is transferred to 'arrowDirection' attribute; other attributes will be related to the first edge from the edge list.
Mauro Castro
getGraph
addLegend
nesthc
nestNodes
mergeOutEdges
relax
selectNodes
att
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | # Initialize igraph
library(igraph)
## Not run:
rdp <- RedPort()
calld(rdp)
###
g1 <- graph.empty(n=10, directed=FALSE)
addGraph( rdp, g1, layout.random(g1) )
resetd(rdp)
###
g2 <- graph.lattice(c(5,5,5))
addGraph( rdp, g2, layout.kamada.kawai(g2) )
resetd(rdp)
###
g <- barabasi.game(10)
V(g)$name<-letters[1:10]
V(g)$nodeSize<-c(100,rep(30,9))
addGraph( rdp, g, ntransform=TRUE )
sg <- barabasi.game(3)
addGraph( rdp, sg, parent="a" )
resetd(rdp)
###...to check loading an interactome!
data(hs.inter)
system.time( addGraph(rdp, hs.inter, layout=NULL) )
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.