[R] Explain Err Msg.
Jason C. Leach
jleach at mail.ocis.net
Tue Jul 30 18:38:50 CEST 2002
hi,
I'm using 'spatstat' to do some point pattern analysis. Mostly
learning trial runs at the moment, but eventually to learn some
info about the distribution of a set of points.
cl13mx is a 2D matrix (x,y) representing my points.
j.
On Tue, Jul 30, 2002 at 05:19:54PM +0100, Prof Brian D Ripley wrote:
> 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
>
>
--
......................
..... Jason C. Leach
..
Current PGP/GPG Key ID: 43AD2024
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list