Questions tagged [spatstat]

spatstat is an R package for analysing spatial data, mainly Spatial Point Patterns.

spatstat is an R package for analysing spatial data, mainly Spatial Point Patterns. It also supports three-dimensional point patterns, and space-time point patterns in any number of dimensions. The package contains over 1000 functions for plotting spatial data, exploratory data analysis, model-fitting, simulation, spatial sampling, model diagnostics, and formal inference. Data types include point patterns, line segment patterns, spatial windows, pixel images and tessellations.

Resources:

441 questions
0
votes
1 answer

It's possible to create envelopes for combinations of mark correlations with spatstat , generated from markcrosscorr?

I would like to know if it is possible to create envelopes for combinations of mark correlations with spatstat , generated from markcrosscorr. In the example on page 645 of the book (2015), I saw that it is possible from the markcorr command, which…
Tieygons
  • 43
  • 5
0
votes
1 answer

How can I improve the estimation for clustering models using kppm function in spatstat

I have simulated some point pattern from Thomas and MatClust models and, I was trying to fit the parameters of the model using kppm() function from spatstat. Nevertheless, I obtained a no good estimation for the parameters. I am wondering while…
0
votes
1 answer

Is there a way to compute the standard error for GAM models using effectfun() within spatstat?

I am using spatstat version 3.0.2 to explore settlement patterns in archaeological data in five different periods throughout prehistory. I have formulated several point process models with different covariates including elevation, slope, etc. I…
0
votes
1 answer

Building kppm model from clusterfit parameters

Following the steps in the answer given here, I've fit Thomas cluster model parameters kappa and sigma to the pooled Kinhom functions of a set mppm intensity predictions. By "transferring" the inhomogeneity to the mu parameter (as a function…
SGJ
  • 1
  • 1
0
votes
1 answer

'spatstat' package: Fitting cluster process models

I have several questions regarding fitting cluster process models using the spatstat package, to solve a problem I am working on. Is there a recommended minimum sample size consideration when fitting a cluster process model to get reliable…
DeeJ
  • 3
  • 2
0
votes
1 answer

How to interpret the different results of pcfcross, markconnection and markcorrelation function?

I want analyze the spatial correlation between different life history stages of different tree species. I used three different summary statistics, namely, pcfcross, markconnect and markcorr functions. The results are different from each other. The…
Puion
  • 3
  • 3
0
votes
1 answer

How to make the covariate in rhohat() a factor?

I'm trying to use the rhohat() function to estimate changes and I have my ppp file and image file. When I run the fuction I get this error Error in spatialCovariateEvidence.exactppm(model = list(X = list(window = list( : Only implemented for…
0
votes
0 answers

Analysis of replicated spatial point patterns (bayesian way)

Lately, I have been interested in spatial Point Patterns analysis. I have been using spatstat and other packages. However, the resources (tutorials and vignettes) regarding replicated point patterns are very limited. My question is, do you know of…
0
votes
1 answer

Is there a way to perform quadratcount() in spatstat without ignoring the marks?

Imagine I have a point pattern distribution in a square and all points have marks (i.e. plant trait data). I want to divide this square in f.e. 4 quadrats. Now I am interested in the spatial distribution of the traits, i.e. I need to now which trait…
Anton
  • 1
  • 2
0
votes
1 answer

Converting Shape file from GIS into a PPP using spatstat UK

I am trying to create a PPP in spatstat using my study area (a large polygon made up of individual polygons) from a shape file from GIS. I have been following: Handling shapeles in the spatstat package Adrian Baddeley, Rolf Turner and Ege…
0
votes
1 answer

Error: x,y coords given but no window specified (spatstat)

I am generating a landscape pattern that evolves over time. The problem with the code is that I have clearly defined a window for the object bringing up the error but the window is not being recognised. I also do not see how any points are falling…
OpenSauce
  • 354
  • 2
  • 14
0
votes
1 answer

Gibbs models for numerically marked data?

I am analyzing data similar to the "anemones" data in spatstat, where my data also consists of disks of varying diameters. My goal is to test for significant regularity, or inhibition between disks. Right now I have tried fitting Strauss models to…
0
votes
1 answer

Simulate a list of kppm objects in R spatstat

I would like to use envelope simulation on a list of kppm objects. I have a point dataset that is in a grid pattern. I would like to shift each point such that its position in the cell is random, then run a spatstat simulation to determine if the…
proximacentauri
  • 1,749
  • 5
  • 25
  • 53
0
votes
1 answer

Area under the curve for Kcross: Multitype K Function

I am using spatstat to run Kcross: Multitype K Function (Cross-type). Here is my data set and here is the script plotting K Cross df <- read.csv(file = "trees_rocks.csv") df.test <- filter(df, Class %in% c("TREE", "ROCK")) x.range <-…
Wolfgang
  • 55
  • 1
  • 6
0
votes
0 answers

draw figures on a map with `sf`

I am struggling to find a systematic way to convert coordinates and geometries to km. Let's say I have a .shp file, which I read with st_read. I want to draw a circle of radius 10 kms around a city. I know the coordinates of the city in latitude and…
altroware
  • 940
  • 3
  • 13
  • 22