README.md

ggsegDefaultExtra

Travis build
status AppVeyor build
status Codecov test
coverage

This package contains dataset for plotting the extra datasets based on the default ggseg and ggseg3d atlases: Desikan-Killany cortical atlas (dk) and the aseg subcrotical atlas.

dkextra contains both superior and inferior views of the inflated brain for the dk-atlas hcpa_3d contains the aseg atlas, with additional division of the hippocampus into anterior and posterior parts

Installation

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

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

Example

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

library(ggsegDefaultExtra)
library(ggseg)

ggseg(atlas = dkextra, mapping = aes(fill = region)) +
  scale_fill_brain("dk") +
  theme(legend.position = "bottom",
        legend.text = element_text(size = 7)) +
  guides(fill = guide_legend(ncol = 3))

library(ggseg3d)

ggseg3d(atlas = hcpa_3d) %>% 
  add_glassbrain("left") %>% 
  pan_camera("right lateral")



neuroconductor-releases/ggsegDefaultExtra documentation built on Jan. 1, 2021, 11:38 a.m.