matlab.like.colorRamps {sdetorus}R Documentation

Generate color palettes similar to the Matlab default

Description

Generates Matlab-like color palettes. Functions imported from the colorRamps package.

Usage

matlab.like.colorRamps(n, two = FALSE)

Arguments

n

number of colors in the palette.

two

flag indicating whether to use colorRamps::matlab.like or colorRamps::matlab.like2.

Value

A vector of n colors.

Examples

image(matrix(1:100, 10), col = matlab.like.colorRamps(100))
image(matrix(1:100, 10), col = matlab.like.colorRamps(100, two = TRUE))

[Package sdetorus version 0.1.10 Index]