matlab.like.colorRamps: Generate color palettes similar to the Matlab default

View source: R/auxiliary.R

matlab.like.colorRampsR 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))

egarpor/sdetorus documentation built on March 4, 2024, 1:23 a.m.