colourramp: Colour palettes

Description Usage Arguments

View source: R/colourramp.R

Description

Functions to help set up colour palettes for use in plots.

Usage

1
2
3
4
5
colourramp(n, ramp = "redblue", start = 0.4, log = F)

.getval(ind, val, predind, smooth)

.colseq(x, tmp, start = 0, stop = 1, log = F, smooth = 0.4)

Arguments

n

number of colour values to be returned

ramp

text specifying what ramp to use

start

darkness for darkest colour (0 is black)

log

logical, should interval be divided linearly?

ind

An index specifying the spacing of the values (0 - 1)

val

The values to which a smoothed spline is fitted

predind

The location for which the smoothed spline function is evaluated (0 - 1)

smooth

the smoothing as spar in smooth.spline

x

Number of colors

tmp

Array of rgb values (dim=c(ncolors,3)) along which the color sequence is interpolated

stop

the upper bound for brightness of colours (1 is white)


jonasbhend/geoutils documentation built on May 19, 2019, 7:27 p.m.