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

ggsegSmith

R-CMD-check

This package contains dataset for plotting the Smith 1907 historical atlas of functional segregation with ggseg and ggseg3d, based on the supplementary materials of Pijnenburg et al., NeuroImage, 239, 2021 DOI; Version 1; 15-01-2021.

G.E. Smith; A new topographical survey of the human cerebral cortex, being an account of the distribution of the anatomically distinct cortical areas and their relationship to the cerebral sulci; J. Anat. Physiol., 41 (Pt 4) (1907), p. 237

To learn how to use these atlases, please look at the documentation for ggseg and ggseg3d

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

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

# install.packages("remotes")
remotes::install_github("ggseg/ggsegSmith")
library(ggseg)
library(ggseg3d)
library(ggsegSmith)

plot(smith) +
  theme(legend.position = "bottom", 
        legend.text = element_text(size = 9)) +
  guides(fill = guide_legend(ncol = 6))
library(dplyr)
ggseg3d(atlas = smith_3d) %>% 
  add_glassbrain() %>% 
  pan_camera("right lateral")
library(dplyr)
p <- ggseg3d(atlas = smith_3d) %>%
  add_glassbrain(hemisphere = "left")%>%
  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 'ggsegSmith' project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.



ggseg/ggsegSmith documentation built on Dec. 20, 2021, 10:45 a.m.