Message-ID: <1321382863978-4073640.post@n4.nabble.com>
Date: 2011-11-15T18:47:43Z
From: Chris82
Subject: points() colored by value
Hi R users,
I want to colored points by their value
for example:
x <- c(1,2,3,4)
y <- c(1,2,3,4)
z <- c(2,3,4,9)
y and x are coordinates
z is the value of the coordinates
points(x,y,col= rainbow(z))
something like that
But haven't found any solution at the moment.
Thanks.
Chris
--
View this message in context: http://r.789695.n4.nabble.com/points-colored-by-value-tp4073640p4073640.html
Sent from the R help mailing list archive at Nabble.com.