This is a high-level wrapper that mirrors the API of neuromaps'
fetch_fsaverage() but is currently limited to the "std.8"
decimated fsaverage surfaces that ship with neurosurf. The function name
uses "load" rather than "fetch" to follow common R idioms.
Usage
load_fsaverage(
density = "std.8",
surf = c("smoothwm", "pial", "inflated", "white", "sphere")
)Examples
# \donttest{
fs <- load_fsaverage(density = "std.8", surf = "inflated")
#> loading /private/var/folders/9h/nkjq6vss7mqdl4ck7q1hd8ph0000gp/T/Rtmp0Nbniq/temp_libpath80e31f94425b/neurosurf/extdata/std.8_lh.inflated.asc
#> loading /private/var/folders/9h/nkjq6vss7mqdl4ck7q1hd8ph0000gp/T/Rtmp0Nbniq/temp_libpath80e31f94425b/neurosurf/extdata/std.8_rh.inflated.asc
show_surface_plot(fs$lh, fs$rh, views = c("lateral", "medial"))
#> Warning: no non-missing arguments to min; returning Inf
#> Warning: no non-missing arguments to max; returning -Inf
#> Warning: no non-missing arguments to min; returning Inf
#> Warning: no non-missing arguments to max; returning -Inf
#> Warning: no non-missing arguments to min; returning Inf
#> Warning: no non-missing arguments to max; returning -Inf
#> Warning: no non-missing arguments to min; returning Inf
#> Warning: no non-missing arguments to max; returning -Inf
# }