knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)
devtools::load_all(".")

ggsegYeo2011

Travis build status AppVeyor build status Codecov test coverage

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

Yeo et al. (2011) J. Neurophysiology 16(3):1125-1165 pubmed

Installation

You can install the released version version from GitHub with:

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

Example

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

library(ggsegYeo2011)
library(ggseg)

ggseg(atlas = yeo7, mapping = aes(fill = region)) +
  scale_fill_brain("yeo7", package = "ggsegYeo2011") +
  theme(legend.position = "bottom",
        legend.text = element_text(size = 9)) +
  guides(fill = guide_legend(ncol = 3))


ggseg(atlas = yeo17, mapping = aes(fill = region)) +
  scale_fill_brain("yeo17", package = "ggsegYeo2011") +
  theme(legend.position = "bottom",
        legend.text = element_text(size = 9)) +
  guides(fill = guide_legend(ncol = 3))
library(ggseg3d)

ggseg3d(atlas = yeo7_3d) %>% 
  pan_camera("right lateral")
library(ggseg3d)

p <- ggseg3d(atlas = yeo7_3d) %>%
  pan_camera("right lateral") %>%
  plotly::add_annotations( text="Screen capture",
                  legendtitle=TRUE, showarrow=FALSE,
                  font = list(color = "#000000b4",
                              family = 'sans serif',
                              size = 50))
plotly::orca(p, "man/figures/README-yeo7-3d-plot.png")
knitr::include_graphics("man/figures/README-yeo7-3d-plot.png")
ggseg3d(atlas = yeo17_3d) %>% 
  pan_camera("right lateral")
library(ggseg3d)

p <- ggseg3d(atlas = yeo17_3d) %>%
  pan_camera("right lateral") %>%
  plotly::add_annotations( text="Screen capture",
                  legendtitle=TRUE, showarrow=FALSE,
                  font = list(color = "#000000b4",
                              family = 'sans serif',
                              size = 50))
plotly::orca(p, "man/figures/README-yeo17-3d-plot.png")
knitr::include_graphics("man/figures/README-yeo17-3d-plot.png")

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



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