Dear list,
I am trying to make a perspective plot with persp(x, y, z). The problem is
that z data set is incomplete, with lots of NA. And I can not get a smooth
surface plot.
Could any one tell me how to generate a smooth surface with incomplete
dataset?
(I tried to fill in some values for the
Hi
try to look at function interp from akima package.
HTH
Petr
On 8 Feb 2007 at 3:53, mike Ad. wrote:
From: mike Ad. [EMAIL PROTECTED]
To: r-help@stat.math.ethz.ch
Date sent: Thu, 08 Feb 2007 03:53:28 -0500
Subject:[R] persp
hello,
i do the following in order to get an persp-plot
x-c(2,2,2,2,2,2,3,3,3,3)
y-c(41,41,83,83,124,166,208,208,208,208)
z-c(90366,90366,92240,92240,92240,96473,100995,100995,100995,100995)
x-data$x
y-data$y
z-matrix(data$z,length(y),length(x))
persp(x,y,z, col=gray)
but i always get the error
Hi,
yes, your x and y are increasing but the (x,y) coordinates are not unique.
Looks like some measurements are redundant in your input.
Michael
hello,
i do the following in order to get an persp-plot
x-c(2,2,2,2,2,2,3,3,3,3)
y-c(41,41,83,83,124,166,208,208,208,208)
[EMAIL PROTECTED] wrote:
hello,
i do the following in order to get an persp-plot
x-c(2,2,2,2,2,2,3,3,3,3)
y-c(41,41,83,83,124,166,208,208,208,208)
z-c(90366,90366,92240,92240,92240,96473,100995,100995,100995,100995)
x-data$x
y-data$y
z-matrix(data$z,length(y),length(x))
persp(x,y,z,
hi peter,
thank you for your advice.
ok, i see the problem, but if i do
x-unique(data$x)
y-unique(data$y)
z-matrix(unique(data$z),length(y),length(x))
it also doesn't work.
i want to do a plot, where i can see, how x and y influences z.
P Ehlers wrote:
[EMAIL PROTECTED] wrote:
hello,
i do
Hi,
of course it can't because the number of unique values is different. You need
a unique _combination_ of x,y and hopefully you don't have different z values
for any such a pair. try:
xyz - unique(cbind(x,y,z))
persp(xyz)
If you still get the err, then you had different measurements for the
Hi,
of course it can't because the number of unique values is different. You need
a unique _combination_ of x,y and hopefully you don't have different z values
for any such a pair. try:
xyz - unique(cbind(x,y,z))
persp(xyz)
If you still get the err, then you had different measurements for the
On 4/25/2006 6:23 AM, Michael Dondrup wrote:
Hi,
of course it can't because the number of unique values is different. You need
a unique _combination_ of x,y and hopefully you don't have different z values
for any such a pair. try:
xyz - unique(cbind(x,y,z))
persp(xyz)
If you still
Hmm,
well, of course this is tested, and it produces a plot, but not the correct
one ;) Sorry, that was too quick
Am Tuesday 25 April 2006 12:51 schrieb Duncan Murdoch:
On 4/25/2006 6:23 AM, Michael Dondrup wrote:
Hi,
of course it can't because the number of unique values is
Is there a way to mark specific tick points on x, y and z axes?
Also, I'm trying to overlay a persp plot using the command lines(..) but it
doesn't appear to work, does anyone know why?
I'm also trying to rotate the persp plot using rotation but this doesn't work
either? I get the error
Dan Gerrard wrote:
Is there a way to mark specific tick points on x, y and z axes?
Also, I'm trying to overlay a persp plot using the command lines(..) but it doesn't appear to work, does anyone know why?
See the examples of ?persp how to add elements to an existing persp()
plot, in particular
I am trying to graph two planes on the same graph using persp(). I can only
get one plane to plot at a time. Can someone explain how I can graph two
planes on the same graph using persp? I've looked throught the
documentation, but cannot find any references to appending a persp plot.
Thanks.
If they are non-intersecting planes, wireframe() from the lattice package
_may_ help you. See example(wireframe). [Warning: the algorithm is quite
crude (and slow) and doesn't always work.]
On Monday 08 September 2003 10:48, Mark Lamias wrote:
I am trying to graph two planes on the same graph
Any suggestions if they are intersecting?
Thanks.
Sincerely yours,
Mark J. Lamias
-Original Message-
From: Deepayan Sarkar [mailto:[EMAIL PROTECTED]
Sent: Monday, September 08, 2003 12:58 PM
To: Mark Lamias; '[EMAIL PROTECTED]'
Subject: Re: [R] Persp Plot
If they are non
15 matches
Mail list logo