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_tnaobject.- i
An
integerindex or the name of the principal cluster as acharacterstring. Wheniandjare bothNULL(the default), every pair of clusters is compared.- j
An
integerindex or the name of the secondary cluster as acharacterstring. Seei.- ...
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)
