View source: R/ITNhistdegdist_function.R
ITNhistdegdist | R Documentation |
This function plots the histogram degree distribution for the ITN
ITNhistdegdist(gs)
gs |
International Trade Network - igraph object |
Panel of ITN histogram degree distribution plots
require(igraph)
##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)
##Plot degree distribution histogram
hist_deg_dist<-ITNhistdegdist(ITN)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.