ITNblock_plot: ITN Blockmodel Plot

Description Usage Arguments Value Examples

Description

This function calculates block membership for the ITN and then plots the network, with node colour according to block membership.

Usage

1
ITNblock_plot(gs, LABEL)

Arguments

gs

International Trade Network - igraph object

LABEL

Should labels be present - TRUE/FALSE

Value

Network Plot - nodes coloured based on block membership

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
require(igraph)
require(sna)
require(intergraph)

##Create random International Trade Network (igraph object)
ITN<-erdos.renyi.game(75,0.05,directed = TRUE)

##Add edge weights
E(ITN)$weight<-runif(ecount(ITN), 0, 1)

##Blockmodel plot
block_plot<-ITNblock_plot(ITN,FALSE)

mrmrmrmrmrmr/network documentation built on May 14, 2019, 6 a.m.