Skip to content

ggsegverse/ggsegSchaefer

ggsegSchaefer

R-CMD-check DOI r-universe

This package contains the Schaefer cortical atlas (version 0.17.1) for the ggseg ecosystem. Includes both the 7-network and 17-network parcellations at resolutions from 100 to 1000 parcels.

Installation

You can install ggsegSchaefer from GitHub with:

# install.packages("remotes")
remotes::install_github("ggsegverse/ggsegSchaefer")

Example

library(ggsegSchaefer)
library(ggseg)
library(ggplot2)

2D atlas

ggplot() +
  geom_brain(
    atlas = schaefer7_400(),
    mapping = aes(fill = label),
    position = position_brain(hemi ~ view),
    show.legend = FALSE
  ) +
  scale_fill_manual(values = schaefer7_400()$palette, na.value = "grey") +
  theme_void() +
  ggtitle("Schaefer 7-Network 400-Parcel Atlas")

ggplot() +
  geom_brain(
    atlas = schaefer17_400(),
    mapping = aes(fill = label),
    position = position_brain(hemi ~ view),
    show.legend = FALSE
  ) +
  scale_fill_manual(values = schaefer17_400()$palette, na.value = "grey") +
  theme_void() +
  ggtitle("Schaefer 17-Network 400-Parcel Atlas")

3D atlas

library(ggseg3d)

ggseg3d(atlas = schaefer7_400()) |>
  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.

About

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages