Assign a color to each node of a network depending of a certain taxonomic level, for example, the phylum.
v_colored.RdAssign a color to each node of a network depending of a certain taxonomic level, for example, the phylum.
Examples
# Load this library to create a vector with colors
library(viridis)
data ("net_dstoolA")
g <- v_colored(net_dstoolA, T_table = david_stool_lineages, g_tax = "Class", p_tax = "Family", g_colors = c)
#> Error in `[.data.frame`(T_table, , g_tax): undefined columns selected
plot(g)
#> Error: object 'g' not found