View source: R/ggseg_atlas_data.R
| ggseg_data_subcortical | R Documentation |
Creates a data object for subcortical brain atlases. Subcortical atlases use individual 3D meshes for each structure (e.g., hippocampus, amygdala).
ggseg_data_subcortical(geom = NULL, meshes = NULL, ...)
brain_data_subcortical(sf = NULL, meshes = NULL)
geom |
2D geometry for rendering, stored in the single |
meshes |
data.frame with columns label and mesh (list-column). Each mesh is a list with:
|
... |
Captures a deprecated |
sf |
Deprecated. Pass 2D geometry via |
An object of class c("ggseg_data_subcortical", "ggseg_atlas_data")
data <- ggseg_data_subcortical(
meshes = data.frame(
label = "hippocampus_left",
mesh = I(list(list(
vertices = data.frame(x = 1:10, y = 1:10, z = 1:10),
faces = data.frame(i = 1:3, j = 2:4, k = 3:5)
)))
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.