Skip to contents

This function assigns colors to the nodes based on their relative abundance.

Usage

g_abundance (layer_mat, g)

Arguments

layer_mat

Abundance data.frame.

g

An igraph object.

Value

A graph with colored nodes.

Examples


data("tc_dstoolA")
data("tc_dstoolB")

g_abundance (layer_mat = tc_dstoolA, g = net_dstA)
#> Error: object 'net_dstA' not found

g_abundance (layer_mat = tc_dstoolB, g = net_dstB)
#> Error: object 'net_dstB' not found