Learn R Programming

Patterns (version 1.4)

position-methods: Returns the position of edges in the network

Description

Returns the position of edges in the network Retrieve network position for consistent plotting. Utility function to plot networks.

Usage

# S4 method for omics_network
position(net, nv = 0)

Value

Matrix with as many rows as the number of edges of the network and three columns (name, xcoord, ycoord).

Arguments

net

a omics_network object

nv

the level of cutoff at which the analysis should be done

Methods

list("signature(net = \"omics_network\")")

Returns a matrix with the position of the node. This matrix can then be used as an argument in the plot function.

Author

Bertrand Frederic, Myriam Maumy-Bertrand.

Examples

Run this code

data(network)
position(network)

Run the code above in your browser using DataLab