theme_black_bg: Possible theme settings for brain image plots

Description Usage Value Examples

Description

theme_black_bg makes the background of the image black, theme_no_ticks removes tick marks from the axes, theme_all_blank removes additional aesthetic labels from the ggplot image,

Usage

1
2
3
4
5

Value

ggplot theme objects

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
## Not run: 
library(oro.nifti)
library(ggplot2)

s_map1<-readNIfTI(system.file('seed_corr_1.nii.gz', package='ggBrain'))
template <- readNIfTI(system.file('template.nii.gz', package='ggBrain'))

dd<-ggBrain(brains=template,mask=template>0,
	mar=c(3,3),mar_ind=c(30,40),col_ind=c(1,2),
	type='structural',center_coords=FALSE)+
 scale_fill_continuous(low="black", high="white")

#without theme settings
dd

#with theme settings
dd + theme_black_bg()
dd + theme_black_bg() + theme_no_ticks()
dd + theme_black_bg() + theme_all_blank()

## End(Not run)

neuroconductor-devel-releases/ggBrain documentation built on May 6, 2020, 4:25 p.m.