Scale an entire atlas
atlas_size.RdScales all atlas coordinates around the centre of the main atlas bounding box. The complete layout, including the distances between views, is scaled as one object. This is useful when cortical and subcortical atlases need to be displayed at comparable sizes in the same figure.
Details
When atlas is a list, the same transformation is applied to every sf
component, including atlas polygons, shading, silhouettes, and glass-cortex
layers. Non-spatial components are left unchanged. For geometries containing
Z or M coordinates, only X and Y are scaled.
Examples
if (FALSE) { # \dontrun{
cortical <- load_atlas("Schaefer2018_400Parcels_7Networks_order")
subcortical <- load_atlas("Melbourne_S1")
subcortical <- atlas_size(subcortical, factor = 1.4)
} # }