This repository contains an R package with atlas data for ggseg and ggseg3d for the Glasser parcellation for HPC.
Glasser et al. (2016) Nature, volume 536, pages 171–178 pubmed
You can install the released version of ggsegGlasser from CRAN with:
install.packages("ggsegGlasser")
And the development version from GitHub with:
# install.packages("devtools")
devtools::install_github("LCBC-UiO/ggsegGlasser")
This is a basic example which shows you how to solve a common problem:
library(ggseg)
ggseg(atlas = glasser, mapping = aes(fill = region)) +
scale_fill_brain("glasser", package = "ggsegGlasser") +
theme(legend.position = "bottom",
legend.text = element_text(size = 9)) +
guides(fill = guide_legend(ncol = 7))
library(ggseg3d)
ggseg3d(atlas = glasser_3d) %>%
pan_camera("right lateral")
Please note that the ‘ggsegGlasser’ project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.