Learn R Programming

cograph (version 2.7.2)

plot.cograph_rich_club: Plot Rich Club Results

Description

Two plot types: "curve" (default) shows the rich club coefficient across thresholds with null model bands. "network" highlights rich club members on the network at a given threshold.

Usage

# S3 method for cograph_rich_club
plot(x, type = c("curve", "network"), k = NULL, col = "#E41A1C", ...)

Value

Invisible x.

Arguments

x

A cograph_rich_club data frame.

type

Character. "curve" (default) or "network".

k

Numeric. For type = "network", the degree/strength threshold to visualize. If NULL, uses the threshold with the highest phi_norm (or phi if not normalized).

col

Line/node color for rich club. Default "#E41A1C".

...

Additional arguments passed to plot (curve) or splot (network).

Examples

Run this code
g <- igraph::sample_pa(50, m = 2, directed = FALSE)
rc <- cograph::rich_club(g)
plot(rc)

Run the code above in your browser using DataLab