[R] points() colored by value

2011-11-15 Thread Chris82
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

Re: [R] points() colored by value

2011-11-15 Thread R. Michael Weylandt michael.weyla...@gmail.com
Try either col=z or col=rainbow(max(z))[z] depending on what color scheme you want. Michael On Nov 15, 2011, at 1:47 PM, Chris82 rubenba...@gmx.de wrote: 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

Re: [R] points() colored by value

2011-11-15 Thread Sarah Goslee
Hi Chris, On Tue, Nov 15, 2011 at 1:47 PM, Chris82 rubenba...@gmx.de wrote: 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)) In the