[R-sig-Geo] ordering points into a line

2024-06-06 Thread Adrian Baddeley
n Problem and you could use the R package 'TSP' for example.. Adrian Baddeley ___ R-sig-Geo mailing list R-sig-Geo@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-geo

[R-sig-Geo] Species distribution modeling with presence-only data using log-Gaussian Cox process

2021-02-10 Thread Adrian Baddeley
clusters="LGCP") See the help for function 'kppm'. It is also extensively documented in Chapter 12 of the spatstat book (book.spatstat.org) Adrian Baddeley [[alternative HTML version deleted]] ___ R-sig-Geo mailing list R-sig-Geo@

Re: [R-sig-Geo] [FORGED] spatstat installation

2020-04-14 Thread Adrian Baddeley
rof Adrian Baddeley DSc FAA John Curtin Distinguished Professor Department of Mathematics and Statistics Curtin University, Perth, Western Australia I work Wednesdays, Thursdays and Fridays From: Rolf Turner Sent: Wednesday, 15 April 2020 11:55 AM To: Mauro Pedone

Re: [R-sig-Geo] Error in random labelling using the J function

2019-10-31 Thread Adrian Baddeley
://github.com/spatstat/spatstat> Note that in the envelope() command above, you don't need the argument 'j="B" and it is ignored. regards Prof Adrian Baddeley DSc FAA John Curtin Distinguished Professor Department of Mathematics and Statistics Curtin University, Pert

Re: [R-sig-Geo] [FORGED] Create a Spatial Weight Matrix based on road distance

2019-06-20 Thread Adrian Baddeley
as.linnet.SpatialLinesDataFrame() from the package 'maptools'. Prof Adrian Baddeley DSc FAA John Curtin Distinguished Professor Department of Mathematics and Statistics Curtin University, Perth, Western Australia From: Rolf Turner Sent: Friday, 21 June 2019 10:08 AM To: Rolando Valdez Cc

Re: [R-sig-Geo] intersections to individual polygons

2018-07-02 Thread Adrian Baddeley
in(as.solist(P)) V <- lapply(P, onesplit, U=U) Z <- Reduce(intersect.tess, V) return(Z) } onesplit <- function(X, U) tess(tiles=list(A=X, NotA=setminus.owin(U, X)), W=U) Prof Adrian Baddeley DSc FAA John Curtin Distinguished Pro

Re: [R-sig-Geo] how to limit an image or a funxy to an irregular polygonal window, instead of the whole enclosing rectangle?

2017-12-16 Thread Adrian Baddeley
n you'll get NA's. I suggest you do something like X <- unique.cases.ppp W <- intersect.owin(Window(X), Window(pov.f)) Y <- X[W] m1 <- ppm(Y ~ pov.f) Adrian Baddeley [[alternative HTML version deleted]] ___ R-sig-Geo mailing list R-sig-Geo@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-geo

Re: [R-sig-Geo] Intensity Estimation Methods

2017-12-16 Thread Adrian Baddeley
Then you could do lik1 <- sum(log(lam1[X])) - integral(lam1) lik2 <- sum(log(lam2[X])) - integral(lam2) and compare the likelihoods. Adrian Baddeley From: Cenk ���Z <ci...@anadolu.edu.tr> Sent: Friday, 15 December 2017 8:23 PM To: Rolf

[R-sig-Geo] using spatialpolygonsdataframe in ppm (or, converting spatialpolygonsdataframe to pixel image or other object useful in ppm)

2017-09-02 Thread Adrian Baddeley
tstat package. If you decide you need a pixel image instead, then just use 'as.im' to convert the function to an image. Hope this helps. Adrian Baddeley Spatstat author Prof Adrian Baddeley DSc FAA John Curtin Distinguished Professor Department of Mathematics and Statis

Re: [R-sig-Geo] [FORGED] uniformly sample points on a border of a polygon

2016-10-13 Thread Adrian Baddeley
You can use the spatstat function 'edges' to extract the edges of a polygonal window. Example: W <- letterR#polygonal window E <- edges(W) X <- runifpointOnLines(20, E) plot(E) plot(X, add=TRUE) Prof Adrian Baddele

[R-sig-Geo] `kest` radius limits?

2016-07-27 Thread Adrian Baddeley
the plots of summary functions use the "recommended range" of distance values rather than the full "available range". To override this, when you plot the summary function, use 'xlim' to control the range of 'r' values. (xlim should be an argument in the 'plot' call). Adrian

[R-sig-Geo] Isotropic edge correction unbiasedness

2016-07-27 Thread Adrian Baddeley
NOT convex (it's a kidney shape). So the statement above applies to this window. > I know this isn't quite an "r-implementation" question, but: anyone know if > isotropic correction is unbiased for an odd shape like a country-outline > (in this case Sweden)? Or should i use the `bo

Re: [R-sig-Geo] Minimum bounding circle from cluster of points (Tina Cormier)

2016-07-15 Thread Adrian Baddeley
mum distance between any two points. Another example is the equilateral triangle. Adrian From: Tina Cormier <tco...@gmail.com<mailto:tco...@gmail.com>> Date: Tuesday, 12 July 2016 8:02 pm To: Adrian Baddeley <adrian.badde...@curtin.edu.au<mailto:adrian.badde...@curtin.edu.au

Re: [R-sig-Geo] Minimum bounding circle from cluster of points (Tina Cormier)

2016-07-11 Thread Adrian Baddeley
minimal circle) is the point at the centre of the triangle. The circumradius is s/sqrt(3), not s/2. Adrian Prof Adrian Baddeley DSc FAA Department of Mathematics and Statistics Curtin University, Perth, Western Australia From: Tina Cormier <tinaacorm...@gmail.com

[R-sig-Geo] Minimum bounding circle from cluster of points (Tina Cormier)

2016-07-09 Thread Adrian Baddeley
(centre=z, radius=r) return(w) } circumcircle.ppp <- function(x, ...) { circumcircle(convexhull(x)) } Adrian Baddeley [[alternative HTML version deleted]] ___ R-sig-Geo mailing list R-sig-Geo@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-geo

[R-sig-Geo] analysis of point patterns

2016-06-30 Thread Adrian Baddeley
not cover geostatistical methods, but you can compute shortest-path distances in the network and construct your own Moran¹s I. Adrian Baddeley ___ R-sig-Geo mailing list R-sig-Geo@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-geo

[R-sig-Geo] Correlation between covariates and intercept (spatstat)

2016-04-17 Thread Adrian Baddeley
should be equivalent as regards their fitted intensity, etc. Adrian Baddeley Prof Adrian Baddeley DSc FAA Department of Mathematics and Statistics Curtin University, Perth, Western Australia ___ R-sig-Geo mailing list R-sig-Geo@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-geo

[R-sig-Geo] different models

2016-04-07 Thread Adrian Baddeley
Please read chapter 9 of the spatstat book for a detailed explanation of what the model formulas mean (and what they don't mean). You can download this chapter for free from the companion website Adrian Prof Adrian Baddeley DSc FAA Department of Mathematics and Statistics Curtin University

Re: [R-sig-Geo] library fails to load in linux

2015-06-25 Thread Adrian Baddeley
We will continue this conversation offline and report the results to R-Sig-Geo when done. Adrian Prof Adrian Baddeley FAA Curtin University On 25/06/15 01:39, Harold-Jeffrey Ship wrote: I have Ubuntu 12.04 Precise. I just installed R and want to install spatstat. This is the R information

[R-sig-Geo] Calculating road (i.e. linear feature) density using spatstat::density.psp()

2015-03-18 Thread Adrian Baddeley
each line by a fine grid of points, each point having a 'weight' equal to the length of line that it replaced. Then apply density.ppp to these points with weights. The result is the density.psp output. Adrian Baddeley spatstat author Prof Adrian Baddeley FAA Curtin University

Re: [R-sig-Geo] Calculate shortest distance between points belonging to different polygons

2015-02-18 Thread Adrian Baddeley
Adrian Baddeley FAA Curtin University From: Ivan Palmegiani [pan.sapiens...@gmail.com] Sent: Wednesday, 18 February 2015 12:32 PM To: Adrian Baddeley Cc: r-sig-geo@r-project.org Subject: Re: [R-sig-Geo] Calculate shortest distance between points belonging

Re: [R-sig-Geo] Calculate shortest distance between points belonging to different polygons

2015-02-18 Thread Adrian Baddeley
) Prof Adrian Baddeley FAA Curtin University From: Ivan Palmegiani [pan.sapiens...@gmail.com] Sent: Wednesday, 18 February 2015 10:11 PM To: Adrian Baddeley Cc: r-sig-geo@r-project.org; r.tur...@auckland.ac.nz; Ege Rubak Subject: Re: [R-sig-Geo] Calculate

[R-sig-Geo] Calculate shortest distance between points belonging to different polygons

2015-02-17 Thread Adrian Baddeley
of 'marks' to 'factor') Adrian Baddeley spatstat author ___ R-sig-Geo mailing list R-sig-Geo@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-geo

[R-sig-Geo] rescale spatstat owin

2014-09-23 Thread Adrian Baddeley
and you want to convert them to kilometres, rescale(W, 1000) or better rescale(W, 1000, unitname=km) The result of 'rescale' is physically equivalent to the original, but is expressed in different units. See help(scalardilate) and help(rescale). Prof Adrian Baddeley FAA University

Re: [R-sig-Geo] Spatstat: (coef(summary()) inquiry/problem.

2014-05-20 Thread Adrian Baddeley
. In the next version of spatstat (1.37-1) we will include a partial implementation of the fast C code for hybrids, which will work for your example. Prof Adrian Baddeley FAA University of Western Australia ___ R-sig-Geo mailing list R-sig-Geo@r-project.org

Re: [R-sig-Geo] Warning message: points were rejected as lying outside the specified window

2014-05-16 Thread Adrian Baddeley
Adrian Prof Adrian Baddeley FAA University of Western Australia From: Rolf Turner [r.tur...@auckland.ac.nz] Sent: Saturday, 17 May 2014 8:29 AM To: Hossain, Md Cc: r-sig-geo@r-project.org; Adrian Baddeley Subject: Re: [R-sig-Geo] Warning message: points were

Re: [R-sig-Geo] Replicating spatstat::pcfcross

2014-01-27 Thread Adrian Baddeley
if the window is a rectangle, there are only two possible marks, etc) but no other major problems. Thank you for communicating this question. It has spurred me to get on with implementing a faster version of pcfcross in 'spatstat'. Adrian Baddeley On 28/01/14 10:39, Noam Ross wrote: I have

Re: [R-sig-Geo] voronoi (thiessen) polygons inside irregular area

2014-01-21 Thread Adrian Baddeley
, an idiom like ttt$tiles - xxx is dangerous, and in this case, will lead to problems, because it is no longer true that the union of tt$tiles is equal to tt$window. The correct way to create a changed tessellation is something like tess(tlles=xxx, window=www). Prof Adrian Baddeley FAA

Re: [R-sig-Geo] Help L Function

2014-01-13 Thread Adrian Baddeley
. Lawrence and R. Milne and G.M. Nair}, title ={On tests of spatial pattern based on simulation envelopes}, journal = {Ecological Monographs}, year = 2014, note = {In press} } Prof Adrian Baddeley FAA University of Western Australia

Re: [R-sig-Geo] How to estimate LGCP parameters for replicated point pattern

2013-12-16 Thread Adrian Baddeley
) K1 - K[[1]] K2 - K[[2]] K3 - K[[3]] Kpool - eval.fv( (K1 * nn1[1] + K2 * nn1[2] + K3 * nn1[3])/sum(nn1)) Finally mod - lgcp.estK(Kpool) In future, mppm() will be able to do this. Prof Adrian Baddeley FAA University of Western Australia

[R-sig-Geo] original coordinates of the redwood data?

2013-12-05 Thread Adrian Baddeley
scale so that competitors could not re-analyse the data. Adrian Baddeley author of 'spatstat' Prof Adrian Baddeley FAA University of Western Australia ___ R-sig-Geo mailing list R-sig-Geo@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-geo

[R-sig-Geo] Dilation and Window Definition in Spatstat

2013-11-02 Thread Adrian Baddeley
'union.owin' and 'dilation.owin'. It has been fixed in spatstat 1.34-1 which has just been submitted to CRAN. Adrian Baddeley ___ R-sig-Geo mailing list R-sig-Geo@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-geo

Re: [R-sig-Geo] Dilation and Window Definition in Spatstat

2013-10-31 Thread Adrian Baddeley
In spatstat 1.34-0 there appears to be a bug in union.owin which also affects dilation.owin. A fix will be distributed shortly. Until this is fixed, the fastest way to do what you want is to convert the window to a pixel mask (using as.mask) before applying the dilation. Adrian Baddeley

[R-sig-Geo] spatstat is now free open source

2013-10-30 Thread Adrian Baddeley
is performed using the package 'polyclip' which is free open source. This means that all uses of spatstat are now covered by free open source licences. Adrian Prof Adrian Baddeley FAA University of Western Australia /and/ CSIRO Computational Informatics /and/ University of Aarhus

Re: [R-sig-Geo] [R-sig-geo] How do I ensure that the polygon in spatstat::owin(poly=polygon) does not have ?negative area?

2013-09-20 Thread Adrian Baddeley
... Are there any NA's in your polygon coordinates? (Spatstat does not currently check for NA's - I will fix that!) Can you plot the coordinates using polygon()? If everything seems ok, please send me the data and I'll try to figure out what is happening. regards Adrian Baddeley - spatstat coauthor

[R-sig-Geo] relative risk (was: negative area of polygon in spatstat::owin)

2013-09-20 Thread Adrian Baddeley
a larger window. This is one of the arguments made by Diggle and Rowlingson (1994). However, automatic methods for selecting the smoothing bandwidth (such as 'bw.relrisk' or 'bw.diggle') will give a different answer in a larger window. A Prof Adrian Baddeley FAA University of Western Australia

[R-sig-Geo] Using pixel image as spatstat's intensity surface

2013-07-23 Thread Adrian Baddeley
by fitting to the data point pattern 'X') but I'll leave that until later. Adrian Baddeley Prof Adrian Baddeley FAA University of Western Australia /and/ CSIRO Mathematics, Informatics Statistics Mail: cet.uwa.edu.au Skype: adrian.baddeley

[R-sig-Geo] Re: spatstat output

2013-07-08 Thread Adrian Baddeley
want to increase the space between the panels in the plot, use the argument 'mar.panel' described in help(plot.fasp). A Prof Adrian Baddeley FAA University of Western Australia /and/ CSIRO Mathematics, Informatics Statistics Mail: cet.uwa.edu.au Skype: adrian.baddeley

[R-sig-Geo] nearest neighbor 3d point pattern

2013-06-27 Thread Adrian Baddeley
Prof Adrian Baddeley FAA University of Western Australia /and/ CSIRO Mathematics, Informatics Statistics Mail: cet.uwa.edu.au Skype: adrian.baddeley From: Rolf Turner [r.tur...@auckland.ac.nz] Sent: Friday, 28 June 2013 7:34 AM To: Carsten

Re: [R-sig-Geo] [R-sig-geo] problem to convert a complex SpatialPolygonsDataFrame to owin

2011-02-06 Thread Adrian Baddeley
. my laptop will accept npoly = 25,000). To avoid this error, you could try setting spatstat.options(checkpolygons=FALSE) which will simply turn off the checking. Do this if you are confident that the polygons do not overlap. Good luck! Adrian Baddeley