Description Usage Arguments Details Value Author(s) See Also Examples
Plotting results from analyses done on data derived from brain segmentations is a common need, but may be quite laborious. Results from such analyses are usually easier to interpret if the plot can mimmick the shape and position in the brain it represents.
ggseg
plots and returns a ggplot object of plotted
aparc regions.
1 2 3 4 5 6 7 8 9 |
.data |
A .data.frame to use for plot aesthetics. Should include a column called "region" corresponding to aparc regions. |
atlas |
Either a string with the name of atlas to use, or a .data.frame containing atlas information (i.e. pre-loaded atlas). |
position |
String choosing how to view the .data. Either "dispersed"[default] or "stacked". |
view |
String to choose view of the .data. Any of c("lateral","medial")[default]. |
hemisphere |
String to choose hemisphere to plot. Any of c("left","right")[default]. |
adapt_scales |
if |
... |
other options sent to geom_polygon for plotting, including mapping aes (cannot include x, y, and group aethetics). |
This package contains data from various brain parcellations, with convenient functions to inspect the results directly on a brain-plot wither with ggplot (2D polygons) or plotly (3d meshes).
The Desikan-Killiany Cortical Atlas [default], Freesurfer cortical segmentations.
Freesurfer automatic subcortical segmentation of a brain volume
a ggplot object
Maintainer: Athanasia Mo Mowinckel a.m.mowinckel@psykologi.uio.no (ORCID)
Authors:
Didac Vidal-PiƱeiro d.v.pineiro@psykologi.uio.no (ORCID)
Athanasia Mowinckel and Didac Pineiro
Useful links:
[ggplot2][ggplot], [aes][aes], [geom_polygon][geom_polygon], [coord_fixed][coord_fixed]
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.