Returns the single 2D geometry object stored in atlas$data$geom, which is
either an sf-class data frame or a brain_polygons data.frame. Its class
determines which rendering path is used downstream.
Details
For backward compatibility with released atlases built before the unified
geom slot, this falls back to the legacy sf slot. Reverse dependencies
should call this accessor (or atlas_sf() / atlas_polygons()) rather than
reaching into atlas$data directly.
Examples
g <- atlas_geom(dk())
atlas_geometry_type(dk())
#> [1] "polygon"
