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

ggsegDesterieux

Travis build status AppVeyor build status Codecov test coverage

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

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)

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

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

p <- ggseg3d(atlas = desterieux_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-3d-plot.png")
knitr::include_graphics("man/figures/README-3d-plot.png")

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.



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