This package contains dataset for plotting the Chen thickness and areal cortical atlas ggseg and ggseg3d.
Chen et al. (2013) PNAS, 110 (42) 17089-17094; pubmed
We recommend installing the ggseg-atlases 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('ggsegChen')
You can install the released version of ggsegChen from GitHub with:
# install.packages("remotes")
remotes::install_github("LCBC-UiO/ggsegChen")
This is a basic example which shows you how to solve a common problem:
library(ggsegChen)
library(ggseg)
#> Warning: package 'ggseg' was built under R version 4.1.1
#> Loading required package: ggplot2
library(ggplot2)
plot(chenAr) +
labs(title = "Chen areal (chenAr)") +
theme(legend.position = "bottom",
legend.text = element_text(size = 9)) +
guides(fill = guide_legend(ncol = 3))
plot(chenTh) +
labs(title = "Chen thickness (chenTh)") +
theme(legend.position = "bottom",
legend.text = element_text(size = 9)) +
guides(fill = guide_legend(ncol = 2))
Please note that the ‘ggsegChen’ project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.