if (FALSE) {
fsbrain::download_fsaverage(T);
subjects_dir = fsaverage.path();
mkco = list('colFn'=viridis::viridis, 'n'=300);
# Ex.1: highlight with patches and custom colormap:
highlight.vertices.on.subject.spheres(subjects_dir, 'fsaverage',
vertices=c(300, 5000, 100000), makecmap_options = mkco);
# Ex.2: show patches on some (red) vertices, not on blue ones:
highlight.vertices.on.subject.spheres(subjects_dir, 'fsaverage',
vertices=c(300, 5000, 100000, 300000), show_patch = c(T,F,T,F),
sphere_colors = c("red", "blue", "red", "blue"));
}
Run the code above in your browser using DataLab