Questions tagged [r-ppp]

16 questions
3
votes
2 answers

Generating a Hexagonal Lattice Using Spatstat

I'm analyzing the growth pattern of certain particles, and want to compare the point pattern with that of a perfectly hexagonal lattice with the same intensity (same number of points per unit of area). I've written a function that does this, but it…
MikeZ
  • 345
  • 1
  • 4
  • 15
3
votes
3 answers

R (spatstat): Built-In Functions Not Evaluating to Desired Limit

So the problem I've run into is pretty basic, but I can't seem to solve it. I've been working with spatstat's F, G, J, K, and L functions, and I want to plot the F function for one point process on the same plot as the F function for a different…
MikeZ
  • 345
  • 1
  • 4
  • 15
2
votes
1 answer

Legend in ppp plot

I´m creating a spatial map of trees based on x-y location using the spatstat package and the ppp function. I´ve been able to do this and the size of each point is based on tree diameter. What I haven´t been able to do, and I hope to find some help…
1
vote
1 answer

Error in spatstat with R: points were rejected as lying outside

I tried to get the map of Wisconsin and try to do Clark-Evans test on spatial data points. However, when I import the map of wisconsin and try to convert it into a window, I met the error: Warning message: 244 points were rejected as lying outside…
Leonard
  • 139
  • 1
  • 11
1
vote
3 answers

How do I plot species as different colours in a point pattern (ppp) using spatstat in R?

The set up is this: There are 10 trees within a 20 by 20 m quadrat in a forest. For each tree we know the species, the diameter (in cm), and the location within the quadrat using x,y coordinates. I would like to plot the trees within the quadrat,…
Jay
  • 157
  • 1
  • 2
  • 9
1
vote
1 answer

How to convert a "ppp" object to multitype object?

How can you convert a "ppp" object to multitype object in order to run a cross k Kcross function in r?
user3511534
  • 113
  • 1
  • 5
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
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

Error in checkranin(tlim, tt, "tlim") : 'tlim[1]' must be < 'tlim[2]'

So I'm currently trying to perform a spatio-temporal kernel density function where I'm able to see kernel density distribution change over time. This was attempted using the sparr package. I'm running the following code: smell_Cases <-…
0
votes
1 answer

Fastest cartesian distance (R) from each point in SpatialPointsDataFrame to closest points/lines in 2nd shapefile

I want to know the fastest algorithms for obtaining the cartesian distances between each point in a SpatialPointsDataFrame (X) and either (a) the closest point in a second SpatialPointsDataFrame (Y), or (b) the closest line segment in a…
Leah Bevis
  • 317
  • 1
  • 11
0
votes
1 answer

How to save ppp (planer point pattern dataframe) or a hyperframe created from different ppp objects in spatsat

I have created a "ppp" objects in R spatstat package and inserted them into a hyper frame I would like to run test later but how do I save them such that I can access them from my computer every time I need 2. I have imported a text comma-delimited…
Richard M
  • 5
  • 3
0
votes
2 answers

how to set the ranges of coordinates X & Y for observation window geometry in spatstat package in R

Hi? I have a data of seedlings distribution which contains species types, X and Y coordinates in UTM. I want to create a point pattern by their X & Y coordinate location with the help of ppp() function in spatstat package. I tried it with following…
R starter
  • 197
  • 12
0
votes
2 answers

Kcross for spatial point pattern analysis - in R

I'm trying to use Kcross for spatial point pattern analysis. I wish to compare between species A and species B, from my dataset called 'birds'. The variable of interest is species_name. It only has 2 levels - species A and species B. Below are my…
Grace
  • 201
  • 2
  • 13
0
votes
1 answer

error message after spatstat::Gcross function: Error in marks.ppp(X, ...) : Sorry, not implemented when the marks are a data frame

I read a shapefile using maptools package and then converted to .ppp hfmd <- readShapeSpatial("NEWMERGE.shp") hfmd2 <- as(hfmd, 'ppp') When I typed hfmd2, I received this Marked planar point pattern: 1092 points` Mark variables: X, Y, Status, ID`…
KIM
  • 157
  • 1
  • 1
  • 8
0
votes
2 answers

How to create multiple owin for clark and evans test?

I am trying to avoid running ~250 Clark and Evans tests (clarkevans.test) manually. I have a table of xmin, xmax, ymin, ymax coordinates in an excel file where each row are the dimensions an operating window. After reading the excel file (read.csv)…
JZA
  • 1
  • 1
1
2