powered by
`r lifecycle::badge("deprecated")`
Atlas palettes are now applied automatically by [geom_brain()]. Use [scale_fill_brain_manual()] for custom palettes.
scale_brain( name = "dk", na.value = "grey", ..., aesthetics = c("fill", "colour", "color") )scale_colour_brain(name = "dk", na.value = "grey", ...)scale_color_brain(name = "dk", na.value = "grey", ...)scale_fill_brain(name = "dk", na.value = "grey", ...)
scale_colour_brain(name = "dk", na.value = "grey", ...)
scale_color_brain(name = "dk", na.value = "grey", ...)
scale_fill_brain(name = "dk", na.value = "grey", ...)
A ggplot2 scale object.
String name of the atlas palette (e.g. `"dk"`, `"aseg"`).
Colour for `NA` entries (default: `"grey"`).
Additional arguments passed to [ggseg.formats::atlas_palette()].
Which aesthetic to scale: `"fill"`, `"colour"`, or `"color"`.
if (FALSE) { library(ggplot2) ggplot() + geom_brain(atlas = dk(), aes(fill = region), show.legend = FALSE) + scale_brain("dk") }
Run the code above in your browser using DataLab