ITNimvex: ITN - Exports vs Imports Plot

Description Usage Arguments Value Examples

View source: R/ITNimvex_function.R

Description

The following function produces a plot showing imports (in degree) vs exports (out degree). This allows us to identify whether in the ITN, countries that export high levels also import high levels. The plot can be produced for either weighted or binary import and export ties.

Usage

1
ITNimvex(gs, weighted)

Arguments

gs

International Trade Network - igraph object

weighted

TRUE - plot import strength vs export strength. FALSE - Import count Vs export count

Value

Imports Vs Exports Plot

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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 binary import vs exports
imvex_plot<-ITNimvex(ITN,FALSE)

ITNr documentation built on March 13, 2020, 1:48 a.m.

Related to ITNimvex in ITNr...