Create a colour map for values of
pHcolourmap(range = c(0, 14), ..., n=256, step = FALSE)
pHcolour(pH)
The return value of pHcolour
is a character string or
a vector of character strings representing colours.
The return value of pHcolourmap
is a colour map (object of class "colourmap"
).
Number of different colour values to be used, when step=FALSE
.
Range of
Logical value. If step=FALSE
(the default) the colours change
continuously with increasing values of the input. If
step=TRUE
, the colour is constant on each unit interval of
Ignored.
Numerical value or numeric vector of values of
Adrian Baddeley Adrian.Baddeley@curtin.edu.au.
In chemistry the hydrogen potential
The function pHcolour
calculates the colour associated with
a given value of pHcolour
takes a numerical value or vector of
values of
The function pHcolourmap
produces a colour map for numerical values
of range
specifies the range of range
use essentially the same mapping of colours,
but when plotted as colour ribbons, display only the specified range.)
If step=FALSE
(the default) the colours change
continuously with increasing values of the input. There will be
n
different colour values in the colour map. Usually n
should be a large number.
If step=TRUE
, the colour is constant on each unit interval of
colourmap
pHcolour(7)
plot(pHcolourmap())
plot(pHcolourmap(step=TRUE))
plot(pHcolourmap(c(3, 8)))
Run the code above in your browser using DataLab