plotreduced: Plot a reduced network

plot_reducedR Documentation

Plot a reduced network

Description

Plot a reduced network using igraph, with nodes colored by block number.

Usage

plot_reduced(iobject,main='')

Arguments

iobject

An igraph object representing the reduced network.

main

Text for the title of the plot. Defaults to an empty string. See plot.

Details

Plots the reduced network, where each node represents all the nodes assigned to that position by CONCOR. Node colors on the reduced network plot are assigned by position, so if CONCOR is also used for vertex color on a sociogram (as in plot_socio), the node colors will align between the plots.

Value

Returns NULL, invisibly.

See Also

make_reduced, make_reduced_igraph, plot_socio

Examples

library(igraph)
g1 <- matrix(c(0, 0, 0, 1, 1, 0, 1, 0, 1, 1, 0, 1, 1, 0, 1, 0), ncol = 4)
rownames(g1) <- c("a", "b", "c", "d")
colnames(g1) <- c("a", "b", "c", "d")

r_mat <- make_reduced(list(g1), nsplit = 1)
r_igraph <- make_reduced_igraph(r_mat$reduced_mat[[1]])

plot_reduced(r_igraph)

ATraxLab/concorR documentation built on June 28, 2023, 4:02 p.m.