GP.create.cols: Create 256 colors gradually transitioning from Blue to Yellow...

View source: R/fastGPfit.R

GP.create.colsR 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)

BayesGPfit documentation built on Aug. 6, 2022, 5:06 p.m.