Skip to content

ftdc-picsl/ggsegLausanne

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

ggsegLausanne

ggseg atlases for Lausanne scales used at FTDC This Rda file can be cloned/downloaded and loaded into an R session to provide atlases compatible with ggseg for the cortical regions of the lausanne36, lausanne60, lausanne125, and lausanne250 scale parcellations. In particular, the regions considered in the FTDC-PICSL's QuANTs output.

Usage example:

library(ggplot2)
library(ggseg)
load("/path/to/ggsegLausanne/lausannesggeg.Rda")

plot(lausanne36)

more useful usage examples

If data frame 'df' has a column 'tstat' with t-statistics per ROI, indicated either with a column 'label' or columns 'hemi' and 'region' to plot

ggseg(.data=df, atlas="lausanne60", mapping=aes(fill=tstat)) + 
	labs(title="t-stat comparisons") + 
	scale_fill_gradient(low="firebrick",high="goldenrod") + 
	theme_custombrain(plot.background = "white") + 
	theme(text=element_text(colour="black"))

If looking for both positive and negative values, only if significant based on column 'pval'

ggseg(.data=df[df$pval < 0.05,], atlas="lausanne125", mapping=aes(fill=tstat)) + 
	labs(title=paste(group1, "&", group2, sep=" "), fill="t-stat (p<0.05 unc)") + 
	scale_fill_gradient2(low="firebrick", mid="white",high="blue",midpoint=0) + 
	theme_custombrain(plot.background = "white") + 
	theme(text=element_text(colour="black"))

About

ggseg atlases for Lausanne scales used at FTDC

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published