View source: R/ggseg_atlas_data.R
| ggseg_data_tract | R Documentation |
Creates a data object for white matter tract atlases. Stores centerlines compactly; tube meshes are generated at render time for efficiency.
ggseg_data_tract(geom = NULL, centerlines = NULL, meshes = NULL, ...)
brain_data_tract(sf = NULL, centerlines = NULL, meshes = NULL, ...)
geom |
2D geometry for rendering, stored in the single |
centerlines |
data.frame with columns:
|
meshes |
Deprecated. Use centerlines instead. If provided, will be converted to centerlines format. |
... |
Captures a deprecated |
sf |
Deprecated. Pass 2D geometry via |
An object of class c("ggseg_data_tract", "ggseg_atlas_data")
centerlines_df <- data.frame(
label = "cst_left",
points = I(list(matrix(rnorm(150), ncol = 3))),
tangents = I(list(matrix(rnorm(150), ncol = 3)))
)
data <- ggseg_data_tract(centerlines = centerlines_df)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.