brain_pal {ggseg} | R Documentation |
Generate palettes from the ggseg atlases
Description
brain_pal
return HEX colours for the different ggseg atlases.
Usage
brain_pal(name, n = "all", direction = 1, unname = FALSE, package = "ggseg")
Arguments
name |
String name of atlas |
n |
Number of colours to return (or "all" [default]) |
direction |
Direction of HEX, -1 reverses order Necessary if applying palette to other data than the brain atlas it comes from. |
unname |
return unnamed vector (default = FALSE) |
package |
package to get brain_pals data from (ggseg or ggsegExtra) |
Value
vector of colours
Examples
brain_pal("dk")
brain_pal("aseg")
[Package ggseg version 1.6.5 Index]