GP.create.cols {BayesGPfit}R Documentation

Create 256 colors gradually transitioning from Blue to Yellow to Red.

Description

Create 256 colors gradually transitioning from Blue to Yellow to Red.

Usage

GP.create.cols(num = 256L)

Arguments

num

A integer number to specify the number of colors to generate. The default value is 256.

Value

A vector of RGB colors

Author(s)

Jian Kang <jiankang@umich.edu>

Examples

colors = GP.create.cols(101L)
require(graphics)
filled.contour(volcano,col=colors,nlevels=length(colors)-1,asp=1)
filled.contour(volcano,color.palette = GP.create.cols, nlevels=256, asp = 1)

[Package BayesGPfit version 1.1.0 Index]