subgroup_graph: Create a subgraph based on chosen species communities

Description Usage Arguments Examples

View source: R/sub_groups.R

Description

Creates another igraph object containing only the nodes from some chosen species communities (two or more), and the edges connecting them.

Usage

1
subgroup_graph(graph, groups)

Arguments

graph

The igraph object

groups

The communities that should be isolated, indicated as a list of two items

Examples

1
2
CAT_env1 <- set_color(subgroup_graph(CAT_env, c("host", "ubiquitous")))
plot(CAT_env1)

XPHenry/Netfrac documentation built on Jan. 29, 2020, 12:14 p.m.