I am creating a color palette with the following code:
library(rgl)
fv.colors = colorRampPalette(c("white","tan4","green"))
colorlut = terrain.colors(100)[c(100,95,90,85,80,75:30,25,20,15,14:1)]
col = colorlut[fv-trnlim[1]+1 ]
which gives this: (the color strip was created following the code provided here)
What I would like to have instead is a strip of white at 0, as I currently have, but then a clean break at 0.01 where the palette would start at "tan4", rather than what it does now, i.e. go gradually from white to "tan4" (actually, at no point does it get as dark as tan4).
Apologies if it's a very simple answer but after many tries and much googling, I still can't work it out.
Thanks!