[R] Plot Coloured Triangle

From: Antje <niederlein-rstat_at_yahoo.de>
Date: Mon, 09 Jun 2008 10:57:21 +0200

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?


R-help_at_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. Received on Mon 09 Jun 2008 - 09:02:19 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 09 Jun 2008 - 22:30:40 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive