graphLayout: A function to layout graph locations

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/graphLayout.R

Description

This function will take an object of class Ragraph and will perform a libgraph layout on the graph locations.

Usage

1

Arguments

graph

An object of type Ragraph

layoutType

layout algorithm to use

Details

If the graph has already been laid out, this function merely returns its parameter. Otherwise, it will perform a libgraph layout and retrieve the appropriate location information.

Value

A laid out object of type Ragraph.

Author(s)

Jeff Gentry

See Also

agopen

Examples

1
2
3
4
5
6
V <- letters[1:10]
M <- 1:4
g1 <- randomGraph(V, M, .2)
z <- agopen(g1,"foo",layout=FALSE)
x <- z
a <- graphLayout(z)

Rgraphviz documentation built on May 31, 2017, 11:17 a.m.

Search within the Rgraphviz package
Search all R packages, documentation and source code