geom_brain | R Documentation |
call to geom_sf
geom_brain( mapping = aes(), data = NULL, atlas, hemi = NULL, side = NULL, position = position_brain(), show.legend = NA, inherit.aes = TRUE, ... )
mapping |
argument to pass to |
data |
data.frame with data to plot |
atlas |
object of type brain_atlas to plot |
hemi |
hemisphere to plot. Defaults to everything in the atlas. |
side |
slice to plot, as recorded in the "side" column in the atlas data. Defaults to all. |
position |
position of the data. Default is "identity" but can be
changed by |
show.legend |
logical. Should legend be added or not. |
inherit.aes |
logical. if aes should be inherited from the main ggplot call or not |
... |
arguments to |
ggplot object
library(ggplot2) ggplot() + geom_brain(atlas = dk)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.