Learn R Programming

brainGraph (version 0.62.0)

plot_rich_norm: Plot normalized rich club coefficients against degree threshold

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

plot_rich_norm(rich.dt, facet.by = c("density", "threshold"), densities, alpha = 0.05, 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)
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

Examples

Run this code
## Not run: 
# richPlot <- plot_rich_norm(rich.dt, densities[N:(N+1)], g=g)
# ## End(Not run)

Run the code above in your browser using DataLab