[R] error with bbox for k12hat (splancs) bivarite k-function

awooditc awooditc at gmu.edu
Thu Feb 21 06:53:57 CET 2013


Hello,

I am trying to conduct a bi-variate ripley's k using the k12hat function in
the splancs package (found here
http://rss.acs.unt.edu/Rdoc/library/splancs/html/k12hat.html). Although, I
receive an error when getting to the bboxx part of the code:

poly <- list(x=c(fire4$X, nar4$X), y=c(fire4$Y, nar4$Y))
plot(seq(5,80,5), sqrt(k12hat(fire4), as.points(nar4),
bboxx(bbox(as.points(okpoly))), seq(5,80,5))/pi) - seq(5,80,5),
xlab="distance", 

Error: unexpected ',' in "bboxx(bbox(as.points(poly))),"

What am I doing wrong?  Any help would be greatly appreciated. 

Thanks!
- Elise



--
View this message in context: http://r.789695.n4.nabble.com/error-with-bbox-for-k12hat-splancs-bivarite-k-function-tp4659233.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list