I think you are using some spatial statistics package and not telling us.
Why should r and cl13Kest$theo be the same length? Did you mean
cl13Kest$r?
On Tue, 30 Jul 2002, Jason C. Leach wrote:
> hi,
> To plot something I do:
>
> > cl13ppp<-as.ppp(cl13mx,owin(c(0,maxx), c(0,maxy)))
> > cl13Kest<-Kest(cl13ppp)
> > plot(cl13Kest$r, cl13Kest$border, type="l",
xlab="r", xlim=c(0,50), ylab="K(r)", ylim=c(0,7500),
main=" K-Function for CL13")
> > lines(r, cl13Kest$theo, lty=2)
> Error in xy.coords(x, y) : x and y lengths differ
>
>
> Above where I use owin, I can use 0,100 but when I use the min/max
> of my data (max(myVec), min(myVec) I get the error mentiond above.
> Can anyone explain the err, so I can correct it.
>
This seems a good opportunity to learn how to debug your R code.
--
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272860 (secr)
Oxford OX1 3TG, UK Fax: +44 1865 272595
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at
stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._