Re: [R] Beginner Question on Persp()

2007-02-05 Thread Tom H.
Tom H. wrote: > > I recently downloaded R for Windows, running on Win XP. I'm trying to > create a perspective plot but not having any luck after reading the R > manual and several examples found on the Internet. > > I have a 100 x 100 matrix of Z data as a tab-delimited text file exported >

Re: [R] Beginner Question on Persp()

2007-02-05 Thread Tom H.
Thank you all for taking the time to point out that a data frame is not the same as a matrix! I'll give it another shot when I get home tonight. -- View this message in context: http://www.nabble.com/Beginner-Question-on-Persp%28%29-tf3174399.html#a8807536 Sent from the R help mailing list ar

Re: [R] Beginner Question on Persp()

2007-02-05 Thread Petr Pikal
5 Feb 2007 05:50:34 -0800 (PST) From: "Tom H." <[EMAIL PROTECTED]> To: r-help@stat.math.ethz.ch Subject:[R] Beginner Question on Persp() > > I recently downloaded R for Windows, running on Win XP. I'm trying to > create a pe

Re: [R] Beginner Question on Persp()

2007-02-05 Thread rolf
Your ``z'' which was read in by read.delim() is a *data frame* not a matrix. Do z <- as.matrix(z), then persp(x,y,z) will work. cheers, Rolf Turner [EMAIL PROTECTED] ===+===+===+===+

Re: [R] Beginner Question on Persp()

2007-02-05 Thread David Barron
read.delim creates a data frame (which is a type of list), whereas persp requires that the z argument be a matrix. These are different classes of object in R -- you might want to read the Introduction to R that ships with the programme. Try persp(x,y,as.matrix(z)) On 05/02/07, Tom H. <[EMAIL PR

Re: [R] Beginner Question on Persp()

2007-02-05 Thread Peter Dalgaard
Tom H. wrote: > I recently downloaded R for Windows, running on Win XP. I'm trying to create > a perspective plot but not having any luck after reading the R manual and > several examples found on the Internet. > > I have a 100 x 100 matrix of Z data as a tab-delimited text file exported > from Mi

[R] Beginner Question on Persp()

2007-02-05 Thread Tom H.
I recently downloaded R for Windows, running on Win XP. I'm trying to create a perspective plot but not having any luck after reading the R manual and several examples found on the Internet. I have a 100 x 100 matrix of Z data as a tab-delimited text file exported from Minitab. I read this in t