Learn R Programming

rampage (version 0.2.0)

trimramp: Trimming a calibrated color ramp object.

Description

Modify the minimum and maximum values in a calibramp-class object produced by the expand function.

Usage

trimramp(x, low = NULL, high = NULL)

Value

A trimmed version of x, another calibramp-class object.

Arguments

x

A calibrated color ramp (e.g. calibramp-class object.

low

A single numeric value, the minimum value in the calibrated ramp.

high

A single numeric value, the maximum value in the calibrated ramp.

Examples

Run this code
data(paleomap)
trimmed <- trimramp(paleomap, low=-500, high=1500)
plot(trimmed)

Run the code above in your browser using DataLab