Skip to content

ggseg/ggsegDesterieux

Repository files navigation

ggsegDesterieux

DOI Codecov test coverage R build status

This package contains dataset for plotting the Desterieux cortical atlas ggseg and ggseg3d.

Desterieux, Fischl, Dale,& Halgren (2010) Neuroimage. 53(1): 1–15. doi: 0.1016/j.neuroimage.2010.06.010

Installation

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('ggsegDesterieux')

You can install the released version version from GitHub with:

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

Example

This is a basic example which shows you how to solve a common problem:

library(ggsegDesterieux)
library(ggseg)
library(ggplot2)

plot(desterieux) +
  theme(legend.position = "bottom",
        legend.text = element_text(size = 7)) +
  guides(fill = guide_legend(ncol = 3))

library(ggseg3d)
library(dplyr)

ggseg3d(atlas = desterieux_3d) %>% 
  pan_camera("right lateral")

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