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

Description Usage Arguments Value Author(s) Examples

View source: R/plot_vertex_measures.R

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

1
2
3
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

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

## End(Not run)

brainGraph documentation built on Oct. 23, 2020, 6:37 p.m.