Description Usage Arguments Value See Also Examples
View source: R/closest_atlas_regions.R
Finds the closest atlas regions according to the brain surface parcellation 'brainparc' for the given query vertices.
1 2 3 4 5 6 7 8 9 | vertex_closest_regions(
brainparc,
vertices,
hemis,
linkage = "single",
distance = "euclidean",
silent = getOption("brainloc.silent", default = FALSE),
num_regions_to_report = 5L
)
|
brainparc |
a brain parcellation, see functions like |
vertices |
integer vector, the query vertex indices (from the surface in the |
hemis |
character string vector, the hemispheres for each of the |
linkage |
character string, one of |
distance |
character string, one of |
silent |
logical, whether to suppress console messages. |
num_regions_to_report |
scalar integer, the number of closest regions to report (will be reported in increasing order, by distance). Pass |
a data.frame, the column names should be obvious.
coord_closest_regions
if you have a coordinate (on or near the surface) instead of a vertex.
1 2 3 4 5 | ## Not run:
bp = brainparc_fs(get_subjects_dir(), "fsaverage", atlas="aparc");
vertex_closest_regions(bp, vertices=c(10, 20), hemis=c("lh", "rh"));
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.