-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.Rmd
93 lines (71 loc) · 2.93 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
91
92
93
---
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
)
```
# ggsegNspn500 <img src='man/figures/logo.png' align="right" height="138.5" />
<!-- badges: start -->
[![R-CMD-check](https://github.com/ggseg/ggsegNspn500/workflows/R-CMD-check/badge.svg)](https://github.com/ggseg/ggsegNspn500/actions)
[![DOI](https://zenodo.org/badge/417535612.svg)](https://zenodo.org/badge/latestdoi/417535612)
<!-- badges: end -->
This package contains dataset for plotting the [nspn500](add url here) atlas ggseg and ggseg3d.
Whitaker, K. J., Vértes, P. E., Romero-Garcia, R., Váša, F., Moutoussis, M., Prabhu, G., ... & Tait, R. (2016). Adolescence is associated with genomically patterned consolidation of the hubs of the human brain connectome. Proceedings of the National Academy of Sciences, 113(32), 9105-9110.
Romero-Garcia, R., Atienza, M., Clemmensen, L. H., & Cantero, J. L. (2012). Effects of network resolution on topological properties of human neocortex. Neuroimage, 59(4), 3522-3532.
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('ggsegNspn500')
```
You can install the released version of ggsegNspn500 from [GitHub](https://github.com/) with:
``` r
# install.packages("remotes")
remotes::install_github("ggseg/ggsegNspn500")
```
```{r, fig.height=12}
library(ggseg)
library(ggseg3d)
library(ggsegNspn500)
plot(nspn500) +
theme(legend.position = "bottom",
legend.text = element_text(size = 9)) +
guides(fill = guide_legend(ncol = 5))
```
```{r "noneval", eval=FALSE}
library(dplyr)
ggseg3d(atlas = nspn500_3d) %>%
add_glassbrain() %>%
pan_camera("right lateral")
```
```{r "orca", include=FALSE}
library(dplyr)
p <- ggseg3d(atlas = nspn500_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 'ggsegNspn500' 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.