Skip to contents

Plot the Difference Network Between Two Groups

Usage

# S3 method for class 'group_tna'
plot_compare(x, i = NULL, j = NULL, ...)

Arguments

x

A group_tna object.

i

An integer index or the name of the principal cluster as a character string. When i and j are both NULL (the default), every pair of clusters is compared.

j

An integer index or the name of the secondary cluster as a character string. See i.

...

Additional arguments passed to cograph::plot_compare().

Value

The difference networks are drawn, and returned invisibly: for one pair of clusters (two clusters, or i and j given), a list with the elements weights and inits (the differences, see plot_compare.tna()); otherwise a named list with such a list for each pair of clusters.

Examples

model <- group_model(engagement_mmm)
plot_compare(model)