trimramp: Trimming a calibrated color ramp object.

View source: R/limit.R

trimrampR Documentation

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)

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.

Value

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

Examples

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

rampage documentation built on Aug. 8, 2025, 7:38 p.m.