Plot normalized rich club coefficients against degree threshold

Share:

Description

Returns a ggplot object of a line plot of the normalized rich club coefficient for up to two subject groups. Optionally will include a shaded region demarcating the rich.core cutoff.

Usage

1
2
plot_rich_norm(rich.dt, facet.by = c("density", "threshold"), densities,
  alpha = 0.05, fdr = TRUE, g = NULL)

Arguments

rich.dt

A data.table with rich-club coefficients

facet.by

A character string indicating whether the variable of interest is "density" or "threshold" (e.g. with DTI data)

densities

A numeric vector of the densities to plot

alpha

The significance level (default: 0.05)

fdr

A logical, indicating whether or not to use the FDR-adjusted p-value for determining significance (default: TRUE)

g

A list (of lists) of igraph graph objects; required if you want to plot a shaded region demarcating the rich.core

Value

A ggplot object

Author(s)

Christopher G. Watson, cgwatson@bu.edu

Examples

1
2
3
4
## Not run: 
plot_rich_norm(rich.dt, facet.by='density', densities[N:(N+1)], g=g)

## End(Not run)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.