plot_volumetric: Plot group distributions of volumetric measures for a given...

Description Usage Arguments Value Author(s) See Also

View source: R/plot_group_means.R

Description

This function takes a "tidied" dataset of cortical volumetric measures (thickness, volume, LGI, etc.) and plots a histogram or violin plot for 1 or more groups, and of 1 or more brain regions.

Usage

1
2
plot_volumetric(dat, regions, type = c("violin", "histogram"),
  all.vals = TRUE, modality = c("thickness", "volume", "lgi", "area"))

Arguments

dat

A data table of volumetric data; needs columns for 'Group', 'region', and 'value'

regions

A vector of character strings or integers of the brain region(s) to plot; if integer, the region(s) is/are chosen from the input data table based on the index

type

A character string indicating the plot type; either 'histogram' or 'violin'

all.vals

A logical indicating whether or not to plot horizontal lines for all observations (only valid for 'violin' plots) (default: TRUE)

modality

A character string indicating the type of volumetric measure ('thickness', 'volume', 'lgi', or 'area')

Value

A ggplot object

Author(s)

Christopher G. Watson, [email protected]

See Also

geom_histogram, geom_vline

Other Structural covariance network functions: IndividualContributions, brainGraph_boot, brainGraph_init, brainGraph_permute, corr.matrix, get.resid, plot.brainGraph_resids


brainGraph documentation built on May 29, 2018, 9:03 a.m.