Skip to content

ggseg/ggsegJHU

Repository files navigation

ggsegJHU

DOI Codecov test coverage R build status

Contains data for ggseg and ggseg3d for the JHU white matter segmentation.

Hua et al. (2008) NeuroImage, 39(1):336-347 pubmed

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

You can install the development version from GitHub with:

# install.packages("devtools")
devtools::install_github("LCBC-UiO/ggsegJHU")

Example

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

library(ggsegJHU)
library(ggseg)
library(ggplot2)

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

library(ggseg3d)
library(dplyr)

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

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

About

No description, website, or topics provided.

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages