R/color.scale.R

Defines functions color.scale

Documented in color.scale

color.scale <-
function(fl,color1,color2){
  
  colfunc <- colorRampPalette(c(color1,color2))
  cols<-colfunc(length(fl)+1)
  
  scale.fl<-(fl-min(fl))/(max(fl)-min(fl))*length(fl)+1
  final.cols<-cols[scale.fl]
  
}

Try the GoodFibes package in your browser

Any scripts or data that you put into this service are public.

GoodFibes documentation built on Aug. 19, 2023, 1:06 a.m.