Re: [R] persp() problem

2011-11-19 Thread William Dunlap
potfire, TIBCO Software wdunlap tibco.com > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On > Behalf Of John Benning > Sent: Saturday, November 19, 2011 12:20 PM > To: r-help@r-project.org > Subject: [R] persp() problem > >

Re: [R] persp() problem

2011-11-19 Thread Rolf Turner
Your call to persp() is fine, and works just fine for me. Obviously there is something funny about your data (x, y, and z). They must not be numeric (despite appearances). There is something you haven't told us here; how did you obtain/construct x, y, and z? Try the following: x <- y <- 5*(0:

Re: [R] persp() problem

2011-11-19 Thread David Winsemius
On Nov 19, 2011, at 3:19 PM, John Benning wrote: Hi, and thanks in advance for any assistance, I'm new to R and to this mailing list, and am having trouble with the * persp()* function. I've got a matrix (z) of values for various combinations of x and y, each of which is a set of (0, 5, 10

[R] persp() problem

2011-11-19 Thread John Benning
Hi, and thanks in advance for any assistance, I'm new to R and to this mailing list, and am having trouble with the * persp()* function. I've got a matrix (z) of values for various combinations of x and y, each of which is a set of (0, 5, 10, 15, 20). But when I try * persp(x,y,z)*, I get an "*inv

Re: [R] persp() problem

2007-09-11 Thread Petr PIKAL
Hi He is actually plotting DM matrix against default values [0,1]. So what he needs to do is to change y to c(1,10) and x to seq(1,20,2) to enable his code work. And even in that case there is not possible AFAIK to control exact labeling of axes as they are internaly recalculated to [0,1] value

Re: [R] persp() problem

2007-09-11 Thread Xavier Abulker
There is an error in your code: in persp(x , y , z) the length of x is the number of rows of z, the length of y is the number of columns of z, You should also name the rows and columns in z with x and y Economics Guy wrote: > > I am having some trouble getting the persp() package to change th