[R] assigning 'heat.colors' according to ages in 'symbols()'

Patrick Kuss Patrick.Kuss at unibas.ch
Thu Apr 13 18:20:09 CEST 2006


I have spatial data for plants that I would like to plot according to its radius
using sysmbols(). Also I would like to color the circles according to an
individual's age using heat.colors(17) [ages within the whole data set range
from 0:16].

I have not found an easy way to assign ages (=a) a specific heat.color.

Any suggestions?

Thanks, Patrick

x <- c(1,3,4,6,7,3,2,8,3,6,5,5)
y <- c(0,5,4,2,7,6,4,5,3,7,9,2)
r <- c(0.1,0.4,0.3,0.2,0.5,0.3,0.2,0.4,0.3,0.2,0.1,0.2)
a <- c(0,4,2,3,5,6,8,2,9,10,11,6)


Patrick Kuss
Institute of Botany
University of Basel
Schönbeinstr. 6
CH-4056 Basel
+41 61 267 2976

More information about the R-help mailing list