s-news
[Top] [All Lists]

ppersp

To: "S Plus" <s-news@lists.biostat.wustl.edu>
Subject: ppersp
From: "Marc Choisy" <Marc.CHOISY@mpl.ird.fr>
Date: Thu, 24 Apr 2003 14:26:01 +0200
Hi,
 
Can anyone tell me what does the function perspp exactly do?
 
Here is what I do:
# First I drawn a 3-D frame that I call ppp:
> ppp_persp(c(2,3.5),c(6,58),matrix(rep(0,4),ncol=2),zlim=c(0,150),eye=c(10,-200,400))
# Then I plot points on this frame:
> points(perspp(data[,1],data[,2],data[,3],ppp))
# And I get these warning messages :
WARNING: Point out of bounds: x = 261.000000, y = 286.000000
WARNING: Point out of bounds: x = 376.000000, y = 198.000000
WARNING: Point out of bounds: x = 361.000000, y = 207.000000
WARNING: Point out of bounds: x = 336.000000, y = 225.000000
which surprises me because none of the points of the data.frame data has coordinates out of the bounds of the 3-D frame ppp. Moreover, none of the points of the data.frame data has such x and y coordinates:
> max(data[,1])
[1] 3.480537
> max(data[,2])
[1] 58
> max(data[,3])
[1] 155.4
Does anyone have a clue?
 
Thank you very much.
 
Marc Choisy
CEPM UMR CNRS-IRD 9926
IRD, 911 Avenue Agropolis BP 64501
34394 Montpellier Cedex 5, FRANCE
Tel : +33 (0) 4 67 41 61 80
Fax : +33 (0) 4 67 41 62 99
e-mail : choisy@mpl.ird.fr
web : http://viradium.mpl.ird.fr/cepm/index.htm
<Prev in Thread] Current Thread [Next in Thread>
  • ppersp, Marc Choisy <=