Learn R Programming

RGraphSpace (version 1.0.9)

GraphSpace: Constructor of GraphSpace-class objects

Description

GraphSpace is a constructor of GraphSpace-class objects.

Usage

GraphSpace(g, mar = 0.1, layout = NULL, image = NULL, verbose = TRUE)

Value

A GraphSpace class object.

Arguments

g

An igraph object. It must include graph coordinates assigned to x and y vertex attributes, and vertex labels assigned to name vertex attribute.

mar

A single numeric value (in [0,1]) indicating the size of the outer margins as a fraction of the graph space. Note: When an image is provided, mar is a fraction of image margins.

layout

An optional numeric matrix with two columns for x and y coordinates.

image

An optional background image. When provided, x and y coordinates must represent pixel positions in the image space.

verbose

A single logical value specifying to display detailed messages (when verbose=TRUE) or not (when verbose=FALSE).

Author

Sysbiolab.

See Also

plotGraphSpace

Examples

Run this code
# Load a demo igraph
data('gtoy1', package = 'RGraphSpace')

gs <- GraphSpace(gtoy1)

Run the code above in your browser using DataLab