plot.cograph_rich_club: Plot Rich Club Results

View source: R/rich-club.R

plot.cograph_rich_clubR Documentation

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 class 'cograph_rich_club'
plot(x, type = c("curve", "network"), k = NULL, col = "#E41A1C", ...)

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).

Value

Invisible x.

Examples


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


cograph documentation built on May 31, 2026, 5:06 p.m.