Learn R Programming

ITNr (version 0.7.0)

plot_degree_distribution: Plot Degree Distribution

Description

This function plots degree distribution for any graph

Usage

plot_degree_distribution(graph, a)

Value

Panel of ITN degree distribution plots

Arguments

graph

igraph object

a

mode - "in","out","all

Examples

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

##Plot out degree distribution
plot_degree_distribution(ITN,"in")

Run the code above in your browser using DataLab