Creates a data object for cortical brain atlases. Cortical atlases use vertex indices that map regions to vertices on a shared brain surface mesh (e.g., fsaverage5).
Usage
ggseg_data_cortical(geom = NULL, vertices = NULL, ...)
brain_data_cortical(sf = NULL, vertices = 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.- vertices
data.frame with columns label and vertices (list-column of integer vectors). Each vector contains vertex indices for that region.
- ...
Captures a deprecated
sfargument: if supplied it is converted to the polygon representation viasf_to_polygons()and a deprecation warning is issued. Prefer passing 2D geometry viageom.- sf
Deprecated. Pass 2D geometry via
geominstead.
