similar to: random location in polygons sp spsample splancs csr

Displaying 20 results from an estimated 3000 matches similar to: "random location in polygons sp spsample splancs csr"

2006 Oct 25
1
any good way to convert sp class objects to splancs object
Greetings: are there any simple ways to convert an sp class object to a splancs ppp class object, outside of reading the coordinates and computing a bounding box? cheers, -- Dylan Beaudette Soils and Biogeochemistry Graduate Group University of California at Davis 530.754.7341
2007 Dec 17
1
polygon class in splancs package
Dear forum, I would like to use the kernel2d or spkernel2d in the Splancs-package, but it does not recognize my polygon data. "Error in kernel2d(as.points(ptsbin), polygonprov, h0 = 2, nx = 100, : " is the error message. Invalid poly argument The data are defined as follows: polgonprov<-list(x=polyprov$X, y=polyprov$Y) with X and Y coordinates in the Lambert1972
2009 Mar 30
1
Warning messages in Splancs package :: no non-missing arguments to min; returning Inf
Hi, I would need some help with the splans package in R. I am using a Shapefile (downloadable at) http://rapidshare.com/files/215206891/Redlands_Crime.zip and the following execution code setwd("C:\\Documents and Settings\\Dejan\\Desktop\\GIS\\assignment6\\DataSet_Redlands_Crime\\Redlands_Crime") library(foreign) library(splancs) auto_xy<-read.dbf("Auto_theft_98.dbf")
2007 Aug 13
0
Reading polygon shapefiles in splancs
Dear List, I'm trying to import a multiple polygon shapefile in splancs. I've found the following command but it seems to work only for single polygons: Name_of_splancs_polygon<-getPolygonCoordsSlot (getPolygonsPolygonsSlot(getSpPpolygonsSlot(name_of_sp_polygon) [[1]]) [[1]]) I've tried to change the numbers but it seams to choose polygons instead of importing them
2012 Feb 09
1
sample points - sp package
When I make a sample in sp, for example a random samping of 5 points in dataset1: sample.dataset1=spsample(dataset1, n = 5, "random") I have a sp object for the selected sampling... My question is : How can I extract from dataset2 the points & data for the coordinates(sample.dataset1) ? The dataset2 would be an object with the same area and coordinate system, but I would like to
2006 Apr 11
0
Incompatible update to splancs
>From version 2.01-17, splancs, a package for spatial point pattern analysis, depends on package sp. Because both packages have defined a bounding box function bbox(), the bbox() method in sp has been given priority, and the default object for dispatch is an array with two or more columns (as in splancs until now). However, the deprecated splancs function returned a non-closed rectangle of
2006 Apr 11
0
Incompatible update to splancs
>From version 2.01-17, splancs, a package for spatial point pattern analysis, depends on package sp. Because both packages have defined a bounding box function bbox(), the bbox() method in sp has been given priority, and the default object for dispatch is an array with two or more columns (as in splancs until now). However, the deprecated splancs function returned a non-closed rectangle of
2005 Sep 16
1
Question:manipulating spatial data using combination of Maptools and Splancs
Hi, I have a problem that concerns combination of the package Maptools and Splancs I have 2 shapefiles that i want to manipulate (one of type point and one polygon).I import them in R using Maptools but then i can't estimate a quartic Kernel using Splancs. The package doesn't recognize the shapes (invalid points and poly argument).I don't know if this is an easy task but i have
2010 Apr 08
0
khat and included polygons
Dear list, I have a question regarding the included polygon in the khat function of the splancs library defining the area where points appear. I have not only one simple polygon included, my map includes several islands. I read my map which was a shape file by readShapeSpatial of the maptools library. Then I split up the SpatialPolygonsDataFrame into the included polygons by coor <- NULL
2007 Nov 30
0
How to Compute envelope of Khat in Splancs Package
Howdy Gurus I am try to compute envelope of Khat from simulations of complete spatial randomness using R package of "Splancs." I got the following error: > UL.khat <- Kenv.csr(length(X_coord), bnd, nsim=100, s) Doing simulation 1 Error in runif(n, min, max) : invalid arguments In addition: Warning message: NAs introduced by coercion I think that I have a problem with
2001 Jun 02
2
inout() in splancs working properly?
I have a problem with function 'inout()' in package 'splancs' on CRAN-R Version 1.2.3 under FreeBSD4.3-STABLE. The following script produces and draws points and a polygon-surrounded area. Repeating the same script many times shows, that points on the polygon-line often, but not always, are outside of the polygon-area. library(splancs) # dataset with polygon (convex
2010 Jan 21
0
sp package - How to join two or more polygons from a SpatialPolygonsDataFrames
I have a SpatialPolygonsDataFrame object (sp package). It contains 40 polygons. Now I want to join some of the polygones. I cannot figure out how to do that? Any ideas? The code below produces a map of Germany and I need to join some counties. library(sp) library(RColorBrewer) # get spatial data for Germany on county level con <- url("http://gadm.org/data/rda/DEU_adm3.RData")
2009 Aug 18
0
kernel density estimation for univariate data using splancs
Hi, I previously received help in extract data from a shapefile and now my question is about kernel density estimation. My objective is to have 3 kernel density plots; 2 for the each set of cases and the 3rd is the difference in kernel densities between the 2 sets of cases. Previously, I used the density function from the stats package, which worked but I wanted finer control of the bandwidth.
2013 Feb 21
2
error with bbox for k12hat (splancs) bivarite k-function
Hello, I am trying to conduct a bi-variate ripley's k using the k12hat function in the splancs package (found here http://rss.acs.unt.edu/Rdoc/library/splancs/html/k12hat.html). Although, I receive an error when getting to the bboxx part of the code: poly <- list(x=c(fire4$X, nar4$X), y=c(fire4$Y, nar4$Y)) plot(seq(5,80,5), sqrt(k12hat(fire4), as.points(nar4),
2006 Aug 28
0
Splancs Query
Dear R Users; I have been using the space-time K-function analysis to detect the existence of clustering in both space and time. I wish to ask and know what the minimum number of cases should be for such analyses to be valid. I have data with 23 cases and don't know how careful i should be in the interpreting the results. Secondly, i wish to find out if there is any bond between the
2005 Jun 17
0
New CRAN package sp: classes and methods for spatial data
We're happy to announce the CRAN release of "sp", an R package which has new-style classes and methods for spatial data, version 0.7-9. Spatial data types that sp implements are: points, grids, lines, and polygons (i.e., rings) optionally with holes. Methods include + the usual print, summary, plot, [, [[, $, ... + coercion between types (e.g. points and grids, matrices,
2005 Jun 17
0
New CRAN package sp: classes and methods for spatial data
We're happy to announce the CRAN release of "sp", an R package which has new-style classes and methods for spatial data, version 0.7-9. Spatial data types that sp implements are: points, grids, lines, and polygons (i.e., rings) optionally with holes. Methods include + the usual print, summary, plot, [, [[, $, ... + coercion between types (e.g. points and grids, matrices,
2009 Jul 14
1
Error when sampling from SpatialLines
Dear forum,   I am working in R 2.9.1 and I am trying to sample locations from a network file. Reading in nor plotting is a problem, however when I am trying to sample from the file I get the following message:   nwlim<-readShapeLines("C:/Limburg_nwshape", proj4string=CRS("+init=epsg:31300")) plot(nwlim)   randacc<-spsample(nwlim,n=1000,"random")
2000 Sep 19
2
porting splancs library to R
I am trying to port the splancs library for S++ version 4.0 to R. I have modified the original FORTRAN to use dllwrap/dlltool (e.g. removed common blocks). I have been able to generate dll's (splancs.dll) using dllwrap/dlltool and Ming32 g77 with a -mdll switch. As of yet I have not been able to generate a dll that can be loaded by R. Does anyone out there have any suggestions. An example
2002 Jan 15
0
errors intalling splancs and sgeostat
I installed R-1.4.0 and then updated all the packages I have, using update.packages(). I got an error for splancs and sgeostat. Trying to install them 'manually' with R CMD INSTALL, I got the following errors. 1) for splancs: Tue<15:26>library[82]#R CMD INSTALL splancs_2.01-5.tar.gz Installing *source* package `splancs' ... libs f95 -PIC -xO5 -dalign -xlic_lib=sunperf -c