powered by
Plot Blockmodel matrix
ggblock( g, blocks = NULL, cols = NULL, show_blocks = FALSE, show_labels = FALSE )
igraph object. Must have 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
# NOT RUN { 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) # }
Run the code above in your browser using DataLab