Location on server: /space/chen-syn01/1/data/cinliu/plots/UKB_2Factor_brainmap
Files used:
Sample plot (the rest are in the link):
Use rm(list=ls()) to clear list in R so we have a new/clean enviroment to work with.
Set working directory with setwd() . This particular file we are saving it in the location '/Users/nini/Desktop/2021lab/CH/brainmap/'
#2 factor brain map rm(list=ls())Input the file and change the region names so it matches with the region names of ggseg.
note: The ggseg package is very specific about the way the region name is labeled so make sure it is exactly the same as how ggseg names the regions and make sure there are no accidental space before or after the words.unified scale