Skip to contents

This function creates a matrix containing the assigned colors for the nodes of a multilayer network.

Usage

node_color_mat (g.list, type)

Arguments

g.list

List of igraph objects.

type

"phylo" assigns the colors according to a certain taxonomic level; "centrality" assigns the colors according to the centrality level.

Value

Returns a heatmap of the multilayer network according to the type you chose.

Examples


data ("mlnet_dstoolAB")

node_color_mat (mlnet_dstoolAB, type = "phylo")
#> Error in matrix(taxacolors, nrow = length(V(g.list[[1]])), ncol = length(g.list)): 'data' must be of a vector type, was 'NULL'

node_color_mat (mlnet_dstoolAB, type = "centrality")
#> Error in matrix(centrality, nrow = length(V(g.list[[1]])), ncol = length(g.list)): 'data' must be of a vector type, was 'NULL'