Learn R Programming

ggseg (version 1.6.7)

theme_brain: ggseg plot theme

Description

a set of themes created for the ggseg plots. Use theme() to tweak.

Usage

theme_brain(text.size = 12, text.family = "mono")

theme_darkbrain(text.size = 12, text.family = "mono")

theme_custombrain( plot.background = "white", text.colour = "darkgrey", text.size = 12, text.family = "mono" )

theme_brain2( plot.background = "white", text.colour = "darkgrey", text.size = 12, text.family = "mono" )

Value

function that alters the themeing of a ggplot object

Arguments

text.size

Specify size of plot text

text.family

Specify font family

plot.background

Specify fill of plot background (`theme_custombrain` only)

text.colour

Specify colour of plot text

Author

Athanasia Mo Mowinckel

Details

`theme_brain`

Default theme for ggseg. Transparent background, no axis lines, and no grid.

`theme_darkbrain`

Dark equivalent to theme_brain, with black background, and light text.

`theme_custombrain`

Theme for easy customization of the brain themes.

See Also

[ggplot()], [aes()], [geom_polygon()], [coord_fixed()] from the ggplot2 package

Examples

Run this code
library(ggplot2)

p <- ggplot() +
  geom_brain(atlas = dk)

p +
  theme_brain()

p +
  theme_darkbrain()

Run the code above in your browser using DataLab