View source: R/position-brain.R
position_brain | R Documentation |
Function to be used in the position argument in geom_brain to alter the position of the brain slice/views.
position_brain(position = "horizontal")
position |
formula describing the rows ~ columns organisation. |
a ggproto object
library(ggplot2) ggplot() + geom_brain(atlas = dk, aes(fill = region), position = position_brain(. ~ side + hemi ), show.legend = FALSE) ggplot() + geom_brain(atlas = dk, aes(fill = region), position = position_brain(side ~ hemi ), show.legend = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.