persp function question

2 messages Options
Embed this post
Permalink
STEFFEN Julie

persp function question

Reply Threaded More More options
Print post
Permalink
Hello,
I have a question about persp function:
I made my classical matrix with x, y and z variables and I dont know why I obtain a 3D image with overestimate heights.

Here is my script:

microtopo = read.csv2("topo2.csv", dec=".")
attach(microtopo)
require(akima)  # for persp or
zz <-interp (x, y, z)
persp(zz)



See also my attach file



Thanks,

Best regards



JS



______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

topo1.pdf (153K) Download Attachment
Duncan Murdoch

Re: persp function question

Reply Threaded More More options
Print post
Permalink
On 11/9/2009 1:00 PM, STEFFEN Julie wrote:
> Hello,
> I have a question about persp function:
> I made my classical matrix with x, y and z variables and I dont know why I obtain a 3D image with overestimate heights.

How can you tell it overestimates heights?  There's no scale given.

Duncan Murdoch

> Here is my script:
>
> microtopo = read.csv2("topo2.csv", dec=".")
> attach(microtopo)
> require(akima)  # for persp or
> zz <-interp (x, y, z)
> persp(zz)
>
>
>
> See also my attach file
>
>
>
> Thanks,
>
> Best regards
>
>
>
> JS
>
>
> ------------------------------------------------------------------------
>
> This body part will be downloaded on demand.

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.