Dear friends,
   After i calculated the k-function, i wanted to get the plot of the
distance and k-function, but an error occured that i didn't met before. The
following is my programs and the version information.
ppa<-read.csv('d:/deleting/ppa.csv',sep=',',header=T)  # a point dataset
ppa<-as.points(ppa)

s<-seq(0,40,1)
khatv<-khat(ppa,bboxx(bbox(ppa)),s)  #calculate functions
plot(s, sqrt(khatv/pi)-s, type='l',lty=1,lwd=1, ylim=c(-2,2))  # the plot
can't generated automatically, but no error occurs. It seemed to be
right, because i used it in version 2.3.1.
But, if you do,
nptg<-528
nsim<-99
kenvcsr<-Kenv.csr(nptg,bboxx(bbox(ppa)),nsim,s)
lines(s, sqrt(kenvcsr$upper/pi)-s, lty=2, lwd=2) #??????ERROR OCCURS
Error is plot.xy(xy.coords(x, y), type = type, ...) :
plot.new didn't be transfered
VERSION INFORMATION
R version 2.4.1 beta (2006-12-05 r40126)
i386-pc-mingw32

locale:
LC_COLLATE=Chinese_People's Republic of China.936;LC_CTYPE=Chinese_People's
Republic of China.936;LC_MONETARY=Chinese_People's Republic of
China.936;LC_NUMERIC=C;LC_TIME=Chinese_People's
Republic of China.936

attached base packages:
[1] "stats"     "graphics"  "grDevices" "utils"     "datasets"  "methods"
[7] "base"

other attached packages:
  splancs        sp
"2.01-19"   "0.9-4"

This programs can be run correctly in version2.3.1, but not in 2.1.1.
where is the problem? Thanks



-- 
With Kind Regards,

oooO:::::::::
(..):::::::::
:\.(:::Oooo::
::\_)::(..)::
:::::::)./:::
::::::(_/::::
:::::::::::::
[***********************************************************************]
Zhi Jie,Zhang ,PHD
Tel:86-21-54237149   epistat@gmail.com
Dept. of Epidemiology,school of public health,Fudan University
Address:No. 138 Yi Xue Yuan Road,Shanghai,China
Postcode:200032
[***********************************************************************]
oooO:::::::::
(..):::::::::
:\.(:::Oooo::
::\_)::(..)::
:::::::)./:::
::::::(_/::::
:::::::::::::

	[[alternative HTML version deleted]]


