R/palette.choose.R

Defines functions palette.choose

Documented in palette.choose

#' @export
#' 
palette.choose<-
  function(colscheme)
  {
    #------ Set the colour palette to be used --------------
    # for use with image.plot or other compatible raster packages 
    
    if(colscheme=="flir")
    {
      #data(flirpal)
      palhex<-flirpal
    }
    
    if(colscheme=="glowbow")
    {
      #data(glowbowpal)
      palhex<-glowbowpal
    }
    
    if(colscheme=="grey120")
    {
      #data(grey120pal)
      palhex<-grey120pal      
    }
    
    if(colscheme=="grey10")
    {
      #data(grey10pal)
      palhex<-grey10pal
    }
    
    if(colscheme=="greyred")
    {
      #data(greyredpal)
      palhex<-greyredpal
    }
    
    if(colscheme=="hotiron")
    {
      #data(hotironpal)
      palhex<-hotironpal
    }
    
    if(colscheme=="ironbow")
    {
     # data(ironbowpal)
      palhex<-ironbowpal
    }
    
    if(colscheme=="medical")
    {
      #data(medicalpal)
      palhex<-medicalpal
    }
    
    if(colscheme=="midgreen")
    {
     # data(midgreenpal)
      palhex<-midgreenpal
    }
    
    if(colscheme=="midgrey")
    {
     # data(midgreypal)
      palhex<-midgreypal
    }
    
    if(colscheme=="mikronprism")
    {
      #data(mikronprismpal)
      palhex<-mikronprismpal
    }
    
    if(colscheme=="mikroscan")
    {
     # data(mikroscanpal)
      palhex<-mikroscanpal
    }
    
    if(colscheme=="rainbowpal")
    {
     # data(rainbowpal)
      palhex<-rainbowpal
    }
    
    if(colscheme=="yellowpal")
    {
      #data(yellowpal)
      palhex<-yellowpal
    }
    palhex
  }

Try the Thermimage package in your browser

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

Thermimage documentation built on Nov. 6, 2018, 1:03 a.m.