Plot Blockmodel matrix
ggblock(
g,
blocks = NULL,
cols = NULL,
show_blocks = FALSE,
show_labels = FALSE
)
igraph object with a sign edge attribute.
vector of block membership as obtained, e.g. from signed_blockmodel
colors used for negative and positive ties
logical. Should block borders be displayed? (Default: FALSE)
logical. Should node labels be displayed? (Default: FALSE)
ggplot2 object
if (FALSE) {
library(igraph)
data("tribes")
clu <- signed_blockmodel(tribes, k = 3, alpha = 0.5, annealing = TRUE)
ggblock(tribes, clu$membership, show_blocks = TRUE, show_labels = TRUE)
}