plot_degree_distribution: Plot Degree Distribution

Description Usage Arguments Value Examples

View source: R/plot_degree_distribution_function.R

Description

This function plots degree distribution for any graph

Usage

1

Arguments

graph

igraph object

a

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

Value

Panel of ITN degree distribution plots

Examples

1
2
3
4
5
6
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")

Example output

Loading required package: network
network: Classes for Relational Data
Version 1.16.1 created on 2020-10-06.
copyright (c) 2005, Carter T. Butts, University of California-Irvine
                    Mark S. Handcock, University of California -- Los Angeles
                    David R. Hunter, Penn State University
                    Martina Morris, University of Washington
                    Skye Bender-deMoll, University of Washington
 For citation information, type citation("network").
 Type help("network-package") to get started.

Loading required package: igraph

Attaching package:igraphThe following objects are masked frompackage:network:

    %c%, %s%, add.edges, add.vertices, delete.edges, delete.vertices,
    get.edge.attribute, get.edges, get.vertex.attribute, is.bipartite,
    is.directed, list.edge.attributes, list.vertex.attributes,
    set.edge.attribute, set.vertex.attribute

The following objects are masked frompackage:stats:

    decompose, spectrum

The following object is masked frompackage:base:

    union

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