[R] wireframe() display a graph with two colors, not a gradient.

2011-02-26 Thread James Platt
Hi all, I'm quite new to wireframe, essentially what I want to do is display a graph, and z-values 1 would be yellow and those 1 would be blue. This is a bit of my data. 0.334643563 0.350913807 0.383652307 0.370325283 0.38779016

Re: [R] Identify points (was Plot error)

2010-07-18 Thread James Platt
not found Error: package/namespace load failed for 'tcltk' Cheers, James On 17 Jul 2010, at 18:12, Peter Ehlers wrote: On 2010-07-17 9:50, James Platt wrote: The other question I have: Is there any way to link the data point on the graph to the name of a row i.e in my table: name value_1

[R] Plot error

2010-07-17 Thread James Platt
Hi guys, I am a newbie to R, so apologies in advance. I created this simple table in excel, saved in tab delimited .txt: name value_1 value_2 1 bill 14 2 ben 2 2 3 jane 3 1 test -read.table(\path\to\file, sep=\t, header=TRUE) x -c(seq[value_1])

Re: [R] Plot error

2010-07-17 Thread James Platt
at it #Assign columns to variables 'x' and 'y' x - test[ , value_1] y - test[ , value_2] #plot plot(x, y) #Or using data directly plot(test[ , value_1], test[ , value_2]) Cheers, Josh On Sat, Jul 17, 2010 at 7:50 AM, James Platt james-pl...@hotmail.co.uk wrote: Hi guys, I am a newbie to R, so

Re: [R] Plot error

2010-07-17 Thread James Platt
On 17 Jul 2010, at 16:43, James Platt wrote: Hi both, Sorry my mistake I was trying to make a graph from another file I called seq, I decided to use test as an example, but mixed up the two. I have got this to work now thanks. after doing this: #Assign columns to variables 'x' and 'y