Creates a data object for white matter tract atlases. Stores centerlines compactly; tube meshes are generated at render time for efficiency.
Usage
ggseg_data_tract(geom = NULL, centerlines = NULL, meshes = NULL, ...)
brain_data_tract(sf = NULL, centerlines = NULL, meshes = NULL, ...)Arguments
- geom
2D geometry for rendering, stored in the single
geomslot: either an sf data.frame (columnslabel,view,geometry) or abrain_polygonsdata.frame (seesf_to_polygons()). The class ofgeomdetermines the rendering path used downstream.- centerlines
data.frame with columns:
label: tract identifier (character)
points: list-column of n x 3 matrices (centerline coordinates)
tangents: list-column of n x 3 matrices (for orientation coloring)
- meshes
Deprecated. Use centerlines instead. If provided, will be converted to centerlines format.
- ...
Captures a deprecated
sfargument (converted to polygons) and absorbs legacy fields (e.g. tube_radius, tube_segments) from old cached atlas objects.- sf
Deprecated. Pass 2D geometry via
geominstead.
