Learn R Programming

MetaboLouise (version 1.0.0)

NetworkCreateR: NetworkCreateR

Description

This function creates a fictional metabolomics network according to the Barabasi-Albert model.

Usage

NetworkCreateR(N, BA_power = 0.5, BA_mValue = 4, plothist = TRUE,
  histbreaks = 50, ...)

Arguments

N

the number of nodes in the network (metabolites)

BA_power

(igrap parameter) The power of the preferential attachment.

BA_mValue

(igrap parameter) The number of edges to add in each time step

plothist

Whether to plot a histogram of the network's connectivity distribution

histbreaks

The number of breaks in the histogram

...

Optional additional arguments to be passed along to the network generator function sample_pa.

Value

A matrix with the network structure

Examples

Run this code
# NOT RUN {
Network <- NetworkCreateR(N = 50, BA_power = 0.5, BA_mValue = 4)
image(Network)

# }

Run the code above in your browser using DataLab