View source: R/atlas_accessors.R
| atlas_geom | R Documentation |
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.
atlas_geom(atlas)
atlas |
a ggseg_atlas object |
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.
an sf or brain_polygons object, or NULL if the atlas has no 2D
geometry
g <- atlas_geom(dk())
atlas_geometry_type(dk())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.