This function creates a matrix containing the assigned colors for the nodes of a multilayer network.
node_color_mat.RdThis function creates a matrix containing the assigned colors for the nodes of a multilayer network.
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'