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

Receiving different measured values from crossK and lohboot

I have a marked ppp dataset looking at crimes and their relation to locations. I am performing an inhomogeneous cross-K using the Kcross.inhom, and am using lohboot to bootstrap confidence intervals around the inhomogenous cross-K. However, I am…
palsi
  • 1
0
votes
1 answer

Analysing polygon marked point patterns using spatstat in R

I have a dataset (data) I want to analyse using spatstat in R. The observed area is a polygon. The marks for my data are numeric values, 1 and 0. If the spot (circle) has a mark of 0, it will be white, and if it has a mark of 1, it will be coloured…
MK Huda
  • 605
  • 1
  • 6
  • 16
0
votes
1 answer

How to change the pch in plot in categorically marked point pattern using spatstat in R

I have the data here data. I want to plot the categorically marked point pattern using spatstat in R. I have tried doing this x = c(3,0.5,1,0,0,0,2,2.5,5.5, 16,21,26,28,40, 47, 52, 58, 60, 65, 63, 63, 75, 77, 78, 75) y =…
MK Huda
  • 605
  • 1
  • 6
  • 16
0
votes
2 answers

Error: objects 'ripras', 'as.ppp', 'delaunay' are not exported by 'namespace:spatstat'

I got following error whie executing the code. Code:install.packages("ithir", repos="http://R-Forge.R-project.org") Error: WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate…
0
votes
1 answer

How to make a better plot with label for marked point patterns using spatstat in R

I have marked point pattern data data. I want to plot the marked point pattern where the marks are only valued at 1 and 0 hence there are two colours only. This is what I have done so far x = c(3,0.5,1,0,0,0,2,2.5,5.5, 16,21,26,28,40, 47, 52, 58,…
MK Huda
  • 605
  • 1
  • 6
  • 16
0
votes
1 answer

Spatstat: Cluster processes for interactions in marked point patterns?

I am trying to identify clustering patterns between different marks using point process models. Multitype Strauss is the only model I have found thus far which can compare interactions between different marks. Is there a clustering model that can be…
0
votes
3 answers

R spatstat, plot function

In this figure, the axes are not displayed on the plot. How to fix it? Can anybody help me, thank you! plot(swedishpines, axes=TRUE) > dput(swedishpines) structure(list(window = structure(list(type = "rectangle", xrange = c(0, 96), yrange = c(0,…
Puion
  • 3
  • 3
0
votes
1 answer

Append spatstat intensity outputs across tesselated surface (derived from shapefile) back to SpatialPolygonsDataFrame for plotting in R

Anyone have advice for retaining (or appending) attributes from a Spatial Polygons Data Frame after conversion to an owin object for pattern analysis in Spatstat? Using spatstat to calculate point intensities across a tesselated surface. No issue…
0
votes
1 answer

Homogenizing scale for density plot

I am making a series of plots from a point pattern (PPP) with the density (kernel) function. I would like that the maximum plotted number is 200 in all cases and just the heatmap accordingly (two of the images only go up to 100). I have not been…
0
votes
1 answer

Simulation of Poisson cluster process on linear network

On pp. 73-74 in "“Stationary” point processes are uncommon on linear networks"* by Adrian Baddeley, Gopolan Nair, Suman Rakshit, and Greg McSwiggan, the authors introduce a Poisson cluster process on a linear network and subsequently demonstrate a…
Pax
  • 664
  • 4
  • 23
0
votes
1 answer

Can't plot image which is converted from a raster

I converted a raster to an image and wanted to plot it. However, I then get the following error: library(raster) r #class : RasterLayer #dimensions : 23320, 37199, 867480680 (nrow, ncol, ncell) #resolution : 0.02, 0.02 (x, y) #extent :…
Maik
  • 1
  • 1
0
votes
1 answer

Analyse Pixel distribution of a Rasterlayer

I really really need some advice. I have a Raster with many pixels. Each pixel has one value. Now I want to do a spatial analysis of these pixels. I want to see in which region have the most pixels and were not. Sounds simple, but it's not. I had an…
Maik
  • 1
  • 1
0
votes
2 answers

missing functions in spatstat library (such as Kest, and rpoint)

i'm trying to use the Kest function (and many other in the spatstat package). i have made a ppp point pattern data set (ppp.1) summary (ppp.1) Planar point pattern: 189 points Average intensity 241122300 points per square unit Coordinates are given…
0
votes
2 answers

spatstat integer overflow error in Kcross and crosspairs

I'm working with spatstat 2.3-4 in R 4.1.0 on a 64bit windows 10 pro machine. Recently I ran into the integer-overflow error while using Kcross with a large number of points (i.e. the number of combination exceeded .Machine$integer.max). For…
Sergej S
  • 37
  • 4
0
votes
0 answers

Spatial randomnes of observations (point pattern)

I want to assess if the observations in my data are spatially randomly distributed over the sampling area (Sweden). I wanted to reproduce the example given in this answer: Spatial Autocorrelation Analysis (Global Moran's I) in R Here is a small…
ZsReka
  • 1