Learn R Programming

PathwaySpace (version 0.99.4)

buildPathwaySpace: Constructor of PathwaySpace-class objects.

Description

buildPathwaySpace is a constructor of PathwaySpace-class objects.

Usage

buildPathwaySpace(g, nrc = 500, mar = 0.075, verbose = TRUE)

Value

A preprocessed PathwaySpace class object.

Arguments

g

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

nrc

A single positive integer indicating the number of rows and columns (in pixels) for a square image matrix. This argument will affect the resulting image size and resolution.

mar

A single numeric value (in [0,1]) indicating the size of the outer margins as a fraction of the image matrix.

verbose

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

Author

Vinicius Chagas, Victor Apolonio, Mauro Castro, and TCGA Network.

See Also

Examples

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

# Create a new PathwaySpace object
pts <- buildPathwaySpace(gtoy1, nrc = 100)
# note: adjust 'nrc' to increase image resolution

Run the code above in your browser using DataLab