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
>
>
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:
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
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
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
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
6 matches
Mail list logo