knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", fig.width = 6, out.width = "100%" ) devtools::load_all(".")
This package contains dataset for plotting the Shaefer cortical atlas ggseg and ggseg3d.
You can install the released version of ggsegSchaefer from GitHub with:
# install.packages("remotes") remotes::install_github("LCBC-UiO/ggsegSchaefer")
library(ggsegSchaefer)
library(ggseg) ggseg(atlas = schaefer7, mapping = aes(fill = region)) + scale_fill_brain("schaefer7", package = "ggsegSchaefer") + theme(legend.position = "bottom", legend.text = element_text(size = 7)) + guides(fill = guide_legend(ncol = 4)) ggseg(atlas = schaefer17, mapping = aes(fill = region)) + scale_fill_brain("schaefer17", package = "ggsegSchaefer") + theme(legend.position = "bottom", legend.text = element_text(size = 7)) + guides(fill = guide_legend(ncol = 4))
library(ggseg3d) ggseg3d(atlas = schaefer7_3d) %>% pan_camera("right lateral")
library(ggseg3d) p <- ggseg3d(atlas = schaefer7_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-s7-3d-plot.png")
knitr::include_graphics("man/figures/README-s7-3d-plot.png")
library(ggseg3d) ggseg3d(atlas = schaefer17_3d) %>% pan_camera("right lateral")
p <- ggseg3d(atlas = schaefer17_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-s17-3d-plot.png")
knitr::include_graphics("man/figures/README-s17-3d-plot.png")
Please note that the 'ggsegSchaefer' project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.