-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.Rmd
90 lines (70 loc) · 2.73 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%",
fig.width = 10,
fig.retina = 3
)
```
# ggsegCampbell <img src='man/figures/logo.png' align="right" height="138.5" />
<!-- badges: start -->
[![R-CMD-check](https://github.com/ggseg/ggsegCampbell/workflows/R-CMD-check/badge.svg)](https://github.com/ggseg/ggsegCampbell/actions)
[![DOI](https://zenodo.org/badge/424732644.svg)](https://zenodo.org/badge/latestdoi/424732644)
<!-- badges: end -->
This package contains dataset for plotting the Campbell 1905 historical atlas with ggseg and ggseg3d, based on the supplementary materials of Pijnenburg et al., NeuroImage, 239, 2021 [DOI](https://doi.org/10.1016/j.neuroimage.2021.118274); Version 1; 15-01-2021.
A.W. Campbell; Histological Studies On the Localisation of Cerebral Function; University Press (1905)
To learn how to use these atlases, please look at the documentation for [ggseg](https://ggseg.github.io/ggseg/) and [ggseg3d](https://ggseg.github.io/ggseg3d)
## Installation
We recommend installing the ggseg-atlases through the ggseg [r-universe](https://ggseg.r-universe.dev/ui#builds):
```{r eval = FALSE}
# Enable this universe
options(repos = c(
ggseg = 'https://ggseg.r-universe.dev',
CRAN = 'https://cloud.r-project.org'))
# Install some packages
install.packages('ggsegCampbell')
```
You can install the released version of ggsegCampbell from [GitHub](https://github.com/) with:
``` r
# install.packages("remotes")
remotes::install_github("ggseg/ggsegCampbell")
```
```{r, fig.height=7}
library(ggseg)
library(ggseg3d)
library(ggsegCampbell)
plot(campbell) +
theme(legend.position = "bottom",
legend.text = element_text(size = 9)) +
guides(fill = guide_legend(ncol = 6))
```
```{r "noneval", eval=FALSE}
library(dplyr)
ggseg3d(atlas = campbell_3d) %>%
add_glassbrain() %>%
pan_camera("right lateral")
```
```{r "orca", include=FALSE}
library(dplyr)
p <- ggseg3d(atlas = campbell_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")
```
```{r "incl", echo=FALSE}
knitr::include_graphics("man/figures/README-3d-plot.png")
```
Please note that the 'ggsegCampbell' project is released with a
[Contributor Code of Conduct](CODE_OF_CONDUCT.md).
By contributing to this project, you agree to abide by its terms.