library(ggplot2)
# Cortical atlas with formula
ggplot() +
geom_brain(
atlas = dk(), aes(fill = region),
position = position_brain(. ~ view + hemi),
show.legend = FALSE
)
ggplot() +
geom_brain(
atlas = dk(), aes(fill = region),
position = position_brain(view ~ hemi),
show.legend = FALSE
)
# \donttest{
ggplot() +
geom_brain(
atlas = aseg(), aes(fill = region),
position = position_brain(nrow = 2)
)
ggplot() +
geom_brain(
atlas = aseg(), aes(fill = region),
position = position_brain(
views = c("sagittal", "axial_3", "coronal_2"),
nrow = 1
)
)
ggplot() +
geom_brain(
atlas = aseg(), aes(fill = region),
position = position_brain(type ~ .)
)
# }
Run the code above in your browser using DataLab