| vertices_to_colors | R Documentation |
Given a ggseg_atlas with vertices column and a brain mesh, creates a color vector for each mesh vertex based on which region it belongs to.
vertices_to_colors(atlas_data, n_vertices, na_colour = "#CCCCCC")
atlas_data |
Data frame with region, colour, and vertices columns |
n_vertices |
Number of vertices in the mesh |
na_colour |
Color for vertices not in any region |
Character vector of colors, one per mesh vertex
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.