Skip to content

ggseg/ggsegSchaefer

Repository files navigation

ggsegSchaefer

R-CMD-check DOI r-univserse

This package contains dataset for plotting the Schaefer cortical atlas (version 0.17.1) ggseg and ggseg3d. Now includes sets for the 17 and 7 network atlas, for parcellations 100:1000.

Installation

The best experience installing ggsegSchaefer is through the ggseg r-universe:

# Enable this universe
options(repos = c(
    ggseg = 'https://ggseg.r-universe.dev',
    CRAN = 'https://cloud.r-project.org'))

# Install some packages
install.packages('ggsegSchaefer')

You can install the released version of ggsegSchaefer from GitHub with:

# install.packages("remotes")
remotes::install_github("LCBC-UiO/ggsegSchaefer")

Example

library(ggsegSchaefer)
library(ggseg)
library(ggseg3d)
library(ggplot2)
library(dplyr)
#> 
#> Attaching package: 'dplyr'
#> The following objects are masked from 'package:stats':
#> 
#>     filter, lag
#> The following objects are masked from 'package:base':
#> 
#>     intersect, setdiff, setequal, union

ggseg 2d atlases

ggseg 3d atlases

ggseg3d(atlas = schaefer7_400_3d, surface = "inflated") %>% 
  pan_camera("right lateral")

Please note that the ‘ggsegSchaefer’ project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.