scale_brain2: Colour and fill scales from the ggseg atlases
Description
The `brain` palette scales provides scales for the different atlases in the
package. Colours are according to the colours used in the papers where the
atlases where first introduced.
Usage
scale_brain2(
palette,
na.value = "grey",
...,
aesthetics = c("fill", "colour", "color")
)scale_colour_brain2(...)
scale_color_brain2(...)
scale_fill_brain2(...)
Value
scaling function for altering colour of ggplot aesthetics
Arguments
- palette
named character vector of regions and colours
- na.value
String name or hex for the colour of NA entries
- ...
additional arguments to pass to brain_pal
- aesthetics
String vector of which aesthetics to scale c("colour", "color", "fill").
Palettes
The following palettes are available for use with these scales:
- ggseg -
dk, aseg
- ggsegExtra -
tracula, jhu, yeo7, yeo17, glasser, chenAr, chenTh,
Examples
Run this codescale_brain()
scale_colour_brain()
scale_fill_brain()
Run the code above in your browser using DataLab