reposition_brain: Reposition brain slices

Description Usage Arguments Value Examples

View source: R/position-brain.R

Description

Function for repositioning pre-joined atlas data (i.e. data and atlas already joined to a single data frame). This makes it possible for users to reposition the geometry data for the atlas for control over final plot layout. For even more detailed control over the positioning, the "hemi" and "side" columns should be converted into factors and ordered by wanted order of appearance.

Usage

1
reposition_brain(data, position = "horizontal")

Arguments

data

sf-data.frame of joined brain atlas and tata

position

position formula for slices

Value

sf-data.frame with repositioned slices

Examples

1
2
3
4
reposition_brain(dk, hemi ~ side)
reposition_brain(dk, side ~ hemi)
reposition_brain(dk, hemi + side ~ .)
reposition_brain(dk, . ~ hemi + side)

neuroconductor/ggseg documentation built on May 15, 2021, 11:21 p.m.