| vertices_to_labels | R Documentation |
Given a ggseg_atlas with vertices column and a brain mesh, creates a label vector for each mesh vertex based on which region it belongs to.
vertices_to_labels(atlas_data, n_vertices, na_label = NA_character_)
atlas_data |
Data frame with region and vertices columns |
n_vertices |
Number of vertices in the mesh |
na_label |
Label for vertices not in any region |
Character vector of labels, one per mesh vertex
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.