Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

graphLayout

A function to layout graph locations


Description

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

Usage

graphLayout(graph, layoutType=graph@layoutType)

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

Examples

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

Rgraphviz

Provides plotting capabilities for R graph objects

v2.34.0
EPL
Authors
Kasper Daniel Hansen [cre, aut], Jeff Gentry [aut], Li Long [aut], Robert Gentleman [aut], Seth Falcon [aut], Florian Hahne [aut], Deepayan Sarkar [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.