| build_tract_meshes | R Documentation |
Creates mesh data structures for tract atlases with per-vertex colouring. Supports palette colours (uniform per tract) or orientation-based RGB colours computed from centerline tangent vectors.
build_tract_meshes(
atlas_data,
na_colour,
color_by = "colour",
atlas_centerlines = NULL,
text_by = NULL,
label_by = "region"
)
atlas_data |
Prepared atlas data frame with label, colour, and mesh columns |
na_colour |
Colour for NA values |
color_by |
How to colour tracts: "colour" (use colour column), "orientation" (direction-based RGB from tangents) |
List of mesh data structures
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.