| get_brain_mesh | R Documentation |
Retrieves a brain surface mesh for the specified hemisphere and surface type. By default, provides the inflated fsaverage5 surface from internal data. Other surfaces (pial, white, semi-inflated) require the ggseg3d package.
get_brain_mesh(
hemisphere = c("lh", "rh"),
surface = "inflated",
brain_meshes = NULL
)
hemisphere |
|
surface |
Surface type (default |
brain_meshes |
Optional user-supplied mesh data. Accepts either
|
A list with vertices (data.frame with x, y, z) and faces
(data.frame with i, j, k), or NULL if the mesh is not available.
mesh <- get_brain_mesh("lh")
head(mesh$vertices)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.