[R] Plot Coloured Triangle

Antje niederlein-rstat at yahoo.de
Mon Jun 9 10:57:21 CEST 2008


Hi there,

I'd like to plot a triangle with each point having a certain color defined and 
fill it with the interpolated values.
The following code shall represent somehow, three points with x,y, and the 
"amount" of red for example...

point1 <- c(1.1, 1.7, 255)
point2 <- c(2.2, 1.5, 180)
point3 <- c(1.8, 2.2, 60)

can anybody give me a hint which methods to use to realize it?

Antje



More information about the R-help mailing list