Description Usage Arguments Examples
Visualizes the network by adding different colors to different species communities, when plotting either with R own color list or a provided color list.
1 | set_color(graph, colors_list = "")
|
graph |
The igraph object used to define colors. The nodes accessed with V() should have a $tax attribute which links them to a community, so a different color can be assigned to each community. |
colors_list |
Optional; the colors can be defined in a list with the community names defined with names(). Otherwise, the function will return the numbers already associated to R colors. |
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.