Displaying 20 results from an estimated 2000 matches similar to: "spatstat => owin + image"
2003 Dec 01
1
Re: using shapefile as owin
My sincerest apologies, as this is a very elementary problem, but I have
searched through archives and FAQs and on the web, and I am at the end of my
own resources.
I need to do analysis of a spatial point process occuring with four
counties, using spatstat. I've had no trouble importing the shapefiles, but
I can't seem to figure out what I need to do in order to use the boundary as
an
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
2013 Sep 19
3
How do I ensure that the polygon in spatstat::owin(poly=<polygon>) does not have “negative area”
I am a new user of the R spatstat package and am having problems creating a
polygonal observation window with owin(). Code follows:
library("maps")
library ("sp")`
library("spatstat")
mass.map <- map("state", "massachusetts:main", fill=T) # This returns
a data frame includding x and y components that form a polygon of
massachusetts mainland`
2011 Jan 14
1
holding objects in dataframes
Hello list,
I need to keep track of objects that are related to particular
observations. In this case, I need to keep track of polygons that are
associated with observations. What I would ideally have is one column
of a dataframe hold a "polygonal" object (from the spatstat package).
My question: I seem to have managed to do it, but as I haven't read that
dataframes are supposed
2009 Oct 19
1
Spatstat: xy binary data into mask type to use in owin(mask=)
Dear users,
I am trying to export polygons from Arcmap into Spatstat to run some
simulations using functions available in Spatstat package.
One particular area to be exported is formed by a number of polygons
defining the external boundaries of the area (as a groups of islands) and a
number of polygons inside the previous ones, as ?holes? not to be
considered as part of the area.
I have
2017 Jun 01
3
[spatstat] Convert shapefile to pixel image
Dear all,
I am currently working with the spatstat package, using windows and pixel images.
First:
My aim is to transform a shapefile (see attached) into a pixel image.
My idea is to start transforming the shapefile into a Spatial Polygon file:
x <- readShapeSpatial("200001441.shp")
y <- as(x, "SpatialPolygons")
z <- as.owin(y)
Given z, I want to identify each
2017 Jun 01
0
[spatstat] Convert shapefile to pixel image
On 02/06/17 01:17, Lluis.Hurtado at uv.es wrote:
> Dear all,
>
> I am currently working with the spatstat package, using windows and pixel images.
>
> First:
>
> My aim is to transform a shapefile (see attached) into a pixel image.
>
> My idea is to start transforming the shapefile into a Spatial Polygon file:
>
> x <-
2009 Apr 06
1
package: maps and spatstat question
I would like to use the output from the map function
in the package maps for use in, say, the spatstat
package. I don't quite understand the coordinates
for the border of the state:
Example:
library(maps)
iowa<-map("region","iowa)
x<-iowa$x
y<-iowa$y
There are NA's and duplicated coordinates.
What would I need to do to use this in the
spatstat owin command?
2013 Mar 21
3
spatstat error
Good day
Im working with some coordinates, and want to create a PPP object, I found
that error:
> Datos=read.table("puntos_texto.txt",dec=".",sep="\t",header=T)
> summary(Datos)
id y x
Min. : 1.0 Min. :1013581 Min. :1177842
1st Qu.: 821.2 1st Qu.:1014442 1st Qu.:1179658
Median
2011 Mar 31
0
Help: creating owin{spatstat} objects from GIS data
Dear R list,
I'm trying to create an object of class "owin" (observation window) in the
package spatstat from GIS mapping data. Here's an example of my problem.
Everything
goes well until the last line of code. I get the error message shown at the
bottom:
library(spatstat)
library(sp)
library(maptools)
con <- url("http://gadm.org/data/rda/CHE_adm1.RData")
class(con)
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
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
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
2012 Mar 16
1
Spatstat - coordinates in observation window
Dear R users,
I wish to run spatial point pattern analysis (e.g. pair correlation function, mark correlation function) for which I need to create an observation window (window=owin) from which the spatial analysis is generated. The command I used to create this observation window as follows:
X1<- ppp(x, y, window=owin(c(80.58,144.96),c(101.06,165.13)),
2004 May 29
1
Rhelp: Need help interpreting plots in spatstat
Hello everybody--
I have been playing with my data in spatstat, and what I'd like to
present is a basic exploratory spatial analysis. I have used the
following code, using a ppp.object called tsdspoints. The code
develops the simulations and the envelopes I want, but I don't
understand my first plot here, the [tsds.ghat.short$r,
tsds.ghat.short$raw]...I cobbled together this code
2013 Jan 29
1
points rejected as lying outside the specified window
Hello,
I am using the following code to create ppp files from csv data and map shape files, but I am getting some errors which I have been unable to fix by searching them online:
library(spatstat)
library(maps)
library(maptools)
NYC2<-readShapePoly("nybb.shp") # this is a map of the NYC boroughs without waterways and no census tract divisions (but it does include lines separating
2011 Nov 28
1
plotting multiple lines on single graph ggplot2
Hello everyone
I have some data of the following type.
100 200 300 400 500
1.1 1.2 1.3 1.4 1.5
600 700 800 900 1000
1.5 1.7 1.9 2.0 2.4
With plot() and points functions I can plot these 4 lines of data. But
I dont know how to do it with qplot or ggplot functions. The scenario
is something like this: the hundreds should appear on x-axis and the
fractional values of y axis.
Thanks alot.
MEMON
2011 Dec 02
1
Willkommen bei der "R-help" Mailingliste
Hello everbody,
I am new to this mailing list and hope to find some help.
I'm trying to get into the spatstat package and encountered two problems. First a graphical one:
There is an example dataset called "finpines" which has several marks (http://www.oga-lab.net/RGM2/func.php?rd_id=spatstat:finpines)
When I pass the given code from the website to R
data(finpines)
2013 Jul 16
1
Masking oceans using polypath
Hi R-help
I am trying to mask the ocean from an image plot I have made.
Here is some example code:
library(mapdata)
image(x=110:155, y =-40:-10, z = outer(1:45, 1:30, "+"),
xlab = "lon", ylab = "lat")
outline <- map("worldHires", plot=FALSE) # returns a list of x/y coords
xrange <- range(outline$x, na.rm=TRUE) # get bounding box
yrange
2008 Apr 15
4
heavy graphs
Dear R community, I am creating large graphs with hundreds of
thousands of datapoints. My usual way for output was pdf, but now I am
getting file sizes of >30Mb that do not open well (or at all) in Adobe. Is
there a way to reduce the resolution or get rid of overlaying datapoints?
Any other idea is also warmly welcome!
Thank you and wishing you a good day!
Georg.
**********************