plot_rich_norm: Plot normalized rich club coefficients against degree...

View source: R/plot_rich_norm.R

plot_rich_normR Documentation

Plot normalized rich club coefficients against degree threshold

Description

Returns a line plot of the normalized rich club coefficient. Optionally, can include a shaded region demarcating the rich_core cutoff (if you supply a list of graph objects to the g argument).

Usage

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

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

A list brainGraphList objects; required if you want to plot a shaded region demarcating the rich_core

smooth

Logical indicating whether or not to plot a smooth curve when data from multiple subjects (per group) are present. Default: TRUE. Ignored for group-level data.

Value

A trellis or ggplot object

Author(s)

Christopher G. Watson, cgwatson@bu.edu

See Also

Other Rich-club functions: Rich Club, rich_club_attrs

Examples

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

## End(Not run)

brainGraph documentation built on June 22, 2024, 7:36 p.m.