degree.dist: Plot of the degree distribution of a network

Description Usage Arguments Details Value Author(s) Examples

View source: R/degree.dist.R

Description

Plot the degree distribution of a network.

Usage

1
degree.dist(net, cumulative = TRUE, log = TRUE)

Arguments

net

The input network.

cumulative

A logical index asking whether a cumulative distribution should be returned.

log

A logical index asking whether a logarithm-scaled distribution should be returned.

Details

Plot the degree distribution of a network.

Value

A .gif plot.

Author(s)

Xu Dong

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
## Not run: 
x <-  net.erdos.renyi.gnp(1000, 0.01)

## Plot the standard degree distribution of x.
degree.dist(x, cumulative = FALSE, log = FALSE)

## Plot the degree distribution of x, with a logarithm scale.
degree.dist(x, cumulative = FALSE, log = TRUE)

## Plot the cumulative degree distribution of x.
degree.dist(x, cumulative = TRUE, log = FALSE)

## Plot the cumulative degree distribution of x, with a logarithm scale.
degree.dist(x, cumulative = TRUE, log = TRUE)

## End(Not run)

fastnet documentation built on Jan. 13, 2021, 5:28 p.m.

Related to degree.dist in fastnet...