Learn R Programming

ITNr (version 0.7.0)

ITNcorr: ITN Correlation Plot

Description

This function plots the correlation between degree and strength scores

Usage

ITNcorr(gs)

Value

Correlation plot

Arguments

gs

International Trade Network - igraph object

Examples

Run this code
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 correlation matrix between degree and strength scores.
corr_plot<-ITNcorr(ITN)

Run the code above in your browser using DataLab