brewer.pal: Generate a sequence of colors for groups.

Description Usage Arguments Value Examples

Description

wrapper of brewer.pal function from RColorBrewer.

Usage

1

Arguments

n

Number of different colors in the palette, minimum 3, maximum depending on palette.

name

A palette name from the lists below.

Value

A vector of colors.

Examples

1
2
3
4
{
# Plot a colorbar with brewer.pal
mypalette<-brewer.pal(7,"Greens")
}

Example output

Loading required package: EBImage
Loading required package: png
Loading required package: parallel
Loading required package: doParallel
Loading required package: foreach
Loading required package: iterators

GiNA documentation built on May 2, 2019, 3:47 p.m.