plot_critical_dyads: Plot critical dyads in network visualisation

Description Usage Arguments Value Examples

View source: R/gaps_critical_edges.R

Description

Note that this only works for undirected graphs. Regardless of whether the input graph is directed it is treated as undirected graph.

Usage

1
2
3
4
5
6
7
8
9
plot_critical_dyads(
  net,
  motif,
  lvl_attr = c("sesType"),
  level = -1,
  cutoff = 2,
  subset_graph = "none",
  ...
)

Arguments

net

Statnet network object

motif

Motif to explore gaps in for

lvl_attr

Node attribute specifying level information

level

Focal level for gap analysis

cutoff

Cut-off point in contributions of an edge to the number of motifs above which to analyse gaps

subset_graph

Whether to subset the graph to only show nodes involved in gaps. One of "none" (no subset, default), "partial" (only focal level is subset) or "focal" (only focal level shown)

...

list of additional parameters to be passed to plotting function (see motifr::plot_mnet), e.g. label = TRUE

Value

A plot of gaps, sized by weight in a multilevel network

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
plot_critical_dyads(ml_net, "1,2[I.C]", level = -1)
plot_critical_dyads(ml_net, "1,2[I.C]",
  level = -1,
  subset_graph = "focal", cutoff = 4, label = TRUE
)
plot_critical_dyads(ml_net, "1,2[I.C]",
  level = -1,
  subset_graph = "partial", cutoff = 4, label = TRUE
)

## End(Not run)

motifr documentation built on Dec. 15, 2020, 5:23 p.m.