Skip to content

Latest commit

 

History

History
79 lines (61 loc) · 2.29 KB

README.md

File metadata and controls

79 lines (61 loc) · 2.29 KB

ggsegTracula

Codecov test coverage R build status DOI

This package contains dataset for plotting the Tracula white matter tracts with ggseg and ggseg3d.

Yendiki et al. (2011) Automated probabilistic reconstruction of white-matter pathways in health and disease using an atlas of the underlying anatomy. Front. Neuroinform. 5:23. doi: 10.3389/fninf.2011.00023

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

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

# install.packages("remotes")
remotes::install_github("LCBC-UiO/ggsegTracula")
library(ggseg)
library(ggplot2)
library(ggseg3d)
library(ggsegTracula)
library(dplyr)
#> 
#> Attaching package: 'dplyr'
#> The following objects are masked from 'package:stats':
#> 
#>     filter, lag
#> The following objects are masked from 'package:base':
#> 
#>     intersect, setdiff, setequal, union

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

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

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