Learn R Programming

ITNr (version 0.3.0)

ITNhistdegdist: ITN Histogram Degree Distribution

Description

This function plots the histogram degree distribution for the ITN

Usage

ITNhistdegdist(gs)

Arguments

gs

International Trade Network - igraph object

Value

Panel of ITN histogram degree distribution plots

Examples

Run this code
# NOT RUN {
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)
# }

Run the code above in your browser using DataLab