Skip to content
Prev 173728 / 398503 Next

[OT] two question about color space.

On 14 Mar 2009, at 13:08, Jinsong Zhao wrote:

            
The black body radiation in that code is only provided as a test case,  
as far as i see it.
if you don't mind about the efficiency of your program, just use ? 
sapply on a range of wavelengths. I'm not particularly keen on the  
implementation of the FORTRAN program you used compared to the one I  
suggested, it seems like a very crude convolution.
The easiest way I know of is using ggplot2, see the last example of  
this page:

http://had.co.nz/ggplot2/geom_path.html


In base graphics, you could use segments to join the observations and  
supply a vector of colours of appropriate length.

Hope this helps,

baptiste
_____________________________

Baptiste Augui?

School of Physics
University of Exeter
Stocker Road,
Exeter, Devon,
EX4 4QL, UK

Phone: +44 1392 264187

http://newton.ex.ac.uk/research/emag