View source: R/position-brain.R
reposition_brain | R Documentation |
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.
reposition_brain(data, position = "horizontal")
data |
sf-data.frame of joined brain atlas and data |
position |
position formula for slices |
sf-data.frame with repositioned slices
reposition_brain(dk, hemi ~ side) reposition_brain(dk, side ~ hemi) reposition_brain(dk, hemi + side ~ .) reposition_brain(dk, . ~ hemi + side)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.