[R] colorRamp of image to span larger range than dataset
Daisy Englert Duursma
daisy.duursma at gmail.com
Mon Sep 6 03:05:22 CEST 2010
Hello and thanks in advance,
Using the dataset volcano:
ascols = colorRampPalette(c("gray","yellow","darkgoldenrod1","orange","red"),interpolate="spline")
x <- 10*(1:nrow(volcano))
y <- 10*(1:ncol(volcano))
image(x, y, volcano, col = ascols, axes = FALSE)
In the example above, how would I change my colorRampPalette or image
function so that it would span to 300 even though max(volcano) = 195?
The image I want to make should not return any red because it does not
reach the true maximum possible value which is 300.
Thanks,
Daisy
--
Room E8C156
Dept. Biological Sciences
Macquarie University NSW 2109
Australia
More information about the R-help
mailing list