[R] Satellite ocean color palette?

2009-10-09 Thread Tim Clark
Dear List,

Is there a color palette avaliable similar to what is used in satellite ocean 
color imagery?  I.e. a gradient with blue on one end and red on the other, with 
yellow in the middle?  I have tried topo.colors(n) but that comes out more 
yellow on the end.  I am looking for something similar to what is found on the 
CoastWatch web page:

http://oceanwatch.pifsc.noaa.gov/imagery/GA2009281_2009282_sst_2D_eddy.jpg

Thanks!

Tim


Tim Clark
Department of Zoology 
University of Hawaii

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Satellite ocean color palette?

2009-10-09 Thread Henrique Dallazuanna
See ?colorRampPallete


On Fri, Oct 9, 2009 at 3:51 PM, Tim Clark mudiver1...@yahoo.com wrote:
 Dear List,

 Is there a color palette avaliable similar to what is used in satellite ocean 
 color imagery?  I.e. a gradient with blue on one end and red on the other, 
 with yellow in the middle?  I have tried topo.colors(n) but that comes out 
 more yellow on the end.  I am looking for something similar to what is found 
 on the CoastWatch web page:

 http://oceanwatch.pifsc.noaa.gov/imagery/GA2009281_2009282_sst_2D_eddy.jpg

 Thanks!

 Tim


 Tim Clark
 Department of Zoology
 University of Hawaii

 __
 R-help@r-project.org mailing list
 https://stat.ethz.ch/mailman/listinfo/r-help
 PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
 and provide commented, minimal, self-contained, reproducible code.




-- 
Henrique Dallazuanna
Curitiba-Paraná-Brasil
25° 25' 40 S 49° 16' 22 O

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Satellite ocean color palette?

2009-10-09 Thread Barry Rowlingson
On Fri, Oct 9, 2009 at 7:51 PM, Tim Clark mudiver1...@yahoo.com wrote:
 Dear List,

 Is there a color palette avaliable similar to what is used in satellite ocean 
 color imagery?  I.e. a gradient with blue on one end and red on the other, 
 with yellow in the middle?  I have tried topo.colors(n) but that comes out 
 more yellow on the end.  I am looking for something similar to what is found 
 on the CoastWatch web page:

 http://oceanwatch.pifsc.noaa.gov/imagery/GA2009281_2009282_sst_2D_eddy.jpg

 Thanks!

 You could build one yourself with the colorRamp function:

satRampP = 
colorRampPalette(c(black,blue,cyan,yellow,orange,red,black))

 that looks roughly like the one in the jpg, but I'm not sure about
the black at the far end...anyway, let's see:

image(matrix(seq(0,1,len=100),100,1),col=satRampP(100))

Or you could try my colour schemes package:

https://r-forge.r-project.org/projects/colourscheme/

Barry

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Satellite ocean color palette?

2009-10-09 Thread Bernardo Rangel Tura
On Fri, 2009-10-09 at 11:51 -0700, Tim Clark wrote:
 Dear List,
 
 Is there a color palette avaliable similar to what is used in satellite ocean 
 color imagery?  I.e. a gradient with blue on one end and red on the other, 
 with yellow in the middle?  I have tried topo.colors(n) but that comes out 
 more yellow on the end.  I am looking for something similar to what is found 
 on the CoastWatch web page:
 
 http://oceanwatch.pifsc.noaa.gov/imagery/GA2009281_2009282_sst_2D_eddy.jpg
 
 Thanks!
 
 Tim
 
 
 Tim Clark
 Department of Zoology 
 University of Hawaii

Tim,

You can make a palette in R, using colorRampPalette, look this example

Satelite.Pallete -
colorRampPalette(c(blue3,cyan,aquamarine,yellow,orange,red))
require(fields)
image.plot(volcano, col = Satelite.Pallete(500), legend.lab=Scale) 
contour(volcano, levels = seq(90, 200, by = 5), add = TRUE)

-- 
Bernardo Rangel Tura, M.D,MPH,Ph.D
National Institute of Cardiology
Brazil

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Satellite ocean color palette?

2009-10-09 Thread Tim Clark
Thanks!  The colorRampPalette() did just what I need.

Tim


Tim Clark
Department of Zoology 
University of Hawaii


--- On Fri, 10/9/09, Barry Rowlingson b.rowling...@lancaster.ac.uk wrote:

 From: Barry Rowlingson b.rowling...@lancaster.ac.uk
 Subject: Re: [R] Satellite ocean color palette?
 To: Tim Clark mudiver1...@yahoo.com
 Cc: r-help@r-project.org
 Date: Friday, October 9, 2009, 9:06 AM
 On Fri, Oct 9, 2009 at 7:51 PM, Tim
 Clark mudiver1...@yahoo.com
 wrote:
  Dear List,
 
  Is there a color palette avaliable similar to what is
 used in satellite ocean color imagery?  I.e. a gradient
 with blue on one end and red on the other, with yellow in
 the middle?  I have tried topo.colors(n) but that comes out
 more yellow on the end.  I am looking for something similar
 to what is found on the CoastWatch web page:
 
  http://oceanwatch.pifsc.noaa.gov/imagery/GA2009281_2009282_sst_2D_eddy.jpg
 
  Thanks!
 
  You could build one yourself with the colorRamp function:
 
 satRampP =
 colorRampPalette(c(black,blue,cyan,yellow,orange,red,black))
 
  that looks roughly like the one in the jpg, but I'm not
 sure about
 the black at the far end...anyway, let's see:
 
 image(matrix(seq(0,1,len=100),100,1),col=satRampP(100))
 
 Or you could try my colour schemes package:
 
 https://r-forge.r-project.org/projects/colourscheme/
 
 Barry
 




__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Satellite ocean color palette?

2009-10-09 Thread Pedro Mardones
tim.colors() in library fields

On Fri, Oct 9, 2009 at 2:51 PM, Tim Clark mudiver1...@yahoo.com wrote:
 Dear List,

 Is there a color palette avaliable similar to what is used in satellite ocean 
 color imagery?  I.e. a gradient with blue on one end and red on the other, 
 with yellow in the middle?  I have tried topo.colors(n) but that comes out 
 more yellow on the end.  I am looking for something similar to what is found 
 on the CoastWatch web page:

 http://oceanwatch.pifsc.noaa.gov/imagery/GA2009281_2009282_sst_2D_eddy.jpg

 Thanks!

 Tim


 Tim Clark
 Department of Zoology
 University of Hawaii

 __
 R-help@r-project.org mailing list
 https://stat.ethz.ch/mailman/listinfo/r-help
 PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
 and provide commented, minimal, self-contained, reproducible code.


__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.