Displaying 20 results from an estimated 10000 matches similar to: "extracting averages from smooth.ppp output on spatstat"
2011 Feb 16
1
help with spatstat ppp transformation data
Hello
I am currently studying spatial distribution of lizards in Spain and
Germany. For this I am using the spatstat package of R to make a
Kolmogorov-Smirnov
test of CSR of unmarked points data.
I have problems transforming the data to ppp class, and I would like to know
if you can help me. I have already made the test with the data of
'japanesepines' that comes with the package, and
2010 Oct 24
0
Turning ppp into im in spatstat
Dear all,
I'm working with two point patterns (ppp) in spatstat. I turned one of
them into a spatial covariate (im) object. After that, I used this im
object to fit a Poisson model for the second point pattern, using the
covariate layer from the first one.
In R, the whole thing looks somewhat like this:
my_first.im <- as.im(my_first.ppp)
test.ppm <- ppm (my_second.ppp, ~my_first,
2010 Oct 15
0
tessellation from biological data in spatstat
Hi,
I'm new to this mailing list so apologies if this is too basic. I have
confocal images 512x512 from which I have extracted x,y positions of the
coordiates of labelled cells exported from ImageJ as a.csv file. I also
have images that define an underlying pattern in the tissue defined as
areas of different pixel values 0 or 255 (also 512x512) I've exported
these images as .txt
2005 Sep 21
1
ppp from SpatStat
Hi
I want to extract the points from an object of type ppp.
How can I do this?
Rainer
2010 Jun 05
1
spatstat sub-selection
Fellow Users,
In Spatstat, if you have a ppp object with, say 100 points, how do you
create another ppp containing a random selection, N, of the original?
You can tell the function 'rthin' to make a sub-selection of points, i.e.
"every point is removed with probability 0.5" but you CAN'T set N exactly...
I'm sure this should be easy...
Ta!
Tom
--
View this message
2007 Apr 27
1
Quadratcount() plotting in R spatstat
Hello,
I am trying to plot a quadratcount object over a ppp object in the spatstat
package. I ultimately want to get something like this
http://bg9.imslab.co.jp/Rhelp/R-2.4.0/src/library/spatstat/man/images/big_quadratcount_001.png
http://bg9.imslab.co.jp/Rhelp/R-2.4.0/src/library/spatstat/man/images/big_quadratcount_001.png
See
2011 Sep 23
1
spatstat => owin + image
Dear Community
I am at my wits end and seek advice.
My wish is to plot coordinates (x,y in WGS84_UMTS for the ones interested)
of sampling points.
This I can do by the standard spatstat prodcedure via owin. I then try to
add an image, which is
a map/satellite photo in the background.
Firstly
Problem: With the current code, I can not get the edges of the image to
match the boarders of the plot
2010 Oct 16
0
Spatstat Tessellation error
Hello R Users,
I am trying to do a quadrat count defined by covariate properties in
spatstat. I have read my elevation raster into R (from ascii) and converted
to class "im" for use in spatstat.
Now I have point data of class "ppp" which window is the same extent as the
elevation image. I can conveniently plot the image and the points on the
image as follows:
2010 Oct 20
0
Spatstat: tessellation problems.
Hello R Users,
I am trying to do a quadrat count defined by covariate properties in
spatstat. I have read my elevation raster into R (from ascii) and converted
to class "im" for use in spatstat.
Now I have point data of class "ppp" which window is the same extent as the
elevation image. I can conveniently plot the image and the points on the
image as follows:
2009 Mar 01
1
projecting GIS coordinates for analysis with spatstat package
I am working on creating an R package for doing fire department analysis and
am trying to create a function that can display emergency incident
densities. The following code sort of does the trick, but I need a display
that shows the number of incidents per square mile. I believe the code
below shows incidents per square unit (in this case, degrees lat/long).
To solve this problem, I believe
2012 Apr 16
2
Creating a point pattern with spatstat
I have presence/absence data in the following format:
1 2 3 4 5 6 7 8 9 10 11 12
1 1 1 1 1 1 1 1 1 1 1 1 0
2 1 1 1 1 0 1 1 1 1 1 1 0
3 1 1 1 1 1 1 1 1 1 1 0 1
4 1 1 1 1 1 0 1 1 1 1 0 1
5 1 1 1 1 1 1 1 0 0 1 1 1
6 1 1 1 0 0 1 0 0 1 1 1 1
7 1 1 1 1 0 1 1 0 0 0 1 1
8 1 1 1 1 1 1 1 0 0 0 1 0
9 1 1 1 1 0 0 1 0 0 0 1 1
10 1 1 1 1 1 1 1 0 0 0 0 1
11 1 1 1 1 1 1 1 1 1 0 0 1
12 1 1 1 1 1 0 0 0 1 1 1 1
2012 Dec 07
1
Fwd: Simulation of spatial Log-Gaussian Cox process in Spatstat
Hello,
I have fitted a Log-Gaussian Cox Process on my data but when I try to
use "simulate.kppm" of the spatstat package I get this error:
Error in rLGCP(model = model, mu = mu, param = param, ..., win = win) :
The spatial domain of the pixel image ?mu? does not cover the
simulation window ?win?
I've used covariates as im, changed the npixel value of the spatstat
options to
2013 Feb 07
2
Spatstat - Kest, envelope problem
Hello,
I am writing cause I have a problem when try to create confidence envelopes
in spatstat.
I have a point data representing firms in my study area.
When I try to create confidence envelopes the error message turns up:
[> p <- envelope(point, fun=Kest, nsim=99)
Error in marks.ppp(Y, dfok = FALSE) :
Sorry, not implemented when the marks are a data frame]
Could you write me how can I
2009 Dec 08
1
Quadratcount problem in spatstat
Hi,
I know there are older threads discussing the quadratcount function in
spatstat. Unfortunately, I could not find a solution to my problem there.
I'm analyzing a point pattern in an irregular polygonal window. Both the
window (an entire country) and the points are projected using WGS84.
When I do quadratcount with only one quadrat for the entire country it
holds all my 154 points:
2009 Mar 06
1
help to use ppp in spatial analysis
Hi,
i am using spatstat package for spatial data analysis and now i have a problem to create a point pattern. The points are in file "points.txt" (first column for Latitude and second column for Longitude ) and I imported them and separated each columns in two arrays x and y. If I plots x and y ( e.g plot(x,y) ) the result appears in square area without problems and the scale is
2018 Feb 10
2
How to label a polygon window (spatstat package)
Hi,?
I want to label a polygon (circle or polygon) inside.
As for example code?
library(spatstat)
x <- runif(20)
y <- runif(20)
X <- ppp(x, y, window=disc(0.7))
plot(X)
Now I want to label that circle inside . Can some one please help me ??
Thanks.?
Regards.............
Tanvir Ahamed
Stockholm, Sweden???? |??mashranga at yahoo.com
2011 Apr 16
1
spatstat regression troubles
Hi Everyone,
I am trying to figure out the spatstat package for the first time and am having some trouble. Unfortunately, I can't post my data set but I'll hopefully post enough details for some help.
I want to model the intensity of a spatial point process using 2 covariates from my data. After reading through the documentation, I have successfully created 2 "ppp" objects. The
2018 Feb 10
0
How to label a polygon window (spatstat package)
Try
text(0.5, 0.5, label = "?text")
On Sat, 10 Feb 2018, 16:22 Mohammad Tanvir Ahamed via R-help, <
r-help at r-project.org> wrote:
> Hi,
> I want to label a polygon (circle or polygon) inside.
> As for example code
>
> library(spatstat)
> x <- runif(20)
> y <- runif(20)
> X <- ppp(x, y, window=disc(0.7))
> plot(X)
>
> Now I want to
2010 Apr 14
1
envelope in spatstat
Hi R users,
This query is regarding the use of the 'envelope' function in Spatstat.
My data can be represented as a point process with CONTINUOUS marks:
points <- ppp(x=x,y=y, marks=m, window= wind)
However the marks are alignments (lines), and so have to be treated
differently to normal scalar marks. Hence to create a mcf object with the
appropriate test function for alignment
2005 Nov 21
0
negative x y in ppp.object
Dear all,
I am using the spatstat package, but my field data was a mirror image of the
data plotted by plot.ppp(X).
Therefore I changed it using -x and -y coordinates.
However, I guess (I saw "debug") that I get some error messages because of
that.
So, could anyone please tell me if I really can not use negative values for
x and y coordinates in a ppp.object (and relates analysis)?