Description Usage Value Examples
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,
1 2 3 4 5 |
ggplot theme objects
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.