plot_vertex_measures: Plot vertex-level graph measures at a single density or...

View source: R/plot_vertex_measures.R

plot_vertex_measuresR Documentation

Plot vertex-level graph measures at a single density or threshold

Description

Creates boxplots of a single vertex-level graph measure at a single density or threshold, grouped by the variable specified by group.by and optionally faceted by another variable (e.g., lobe or network).

Usage

plot_vertex_measures(g.list, measure, facet.by = NULL,
  group.by = getOption("bg.group"), type = c("violin", "boxplot"),
  show.points = FALSE, ylabel = measure, ...)

Arguments

g.list

A brainGraphList or a list of brainGraph objects

measure

A character string of the graph measure to plot

facet.by

Character string indicating the variable to facet by (if any). Default: NULL

group.by

Character string indicating which variable to group the data by. Default: getOption('bg.group')

type

Character string indicating the plot type. Default: 'violin'

show.points

Logical indicating whether or not to show individual data points (default: FALSE)

ylabel

A character string for the y-axis label

...

Arguments passed to geom_boxplot or geom_violin

Value

A trellis or ggplot object

Author(s)

Christopher G. Watson, cgwatson@bu.edu

Examples

## Not run: 
p.deg <- plot_vertex_measures(g[[1]], facet.by='network', measure='degree')

## End(Not run)

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