similar to: Question:manipulating spatial data using combination of Maptools and Splancs

Displaying 16 results from an estimated 16 matches similar to: "Question:manipulating spatial data using combination of Maptools and Splancs"

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),
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
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
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 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
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
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
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.
2003 Dec 07
2
par(las = 1) not possible in polymap(), library(splancs)?
Dear all, I want my PhD thesis which I hand in tomorrow to look even nicer: Does polymap in the splancs library not allow horizontal plotting of y-labels? I have tried polymap(studyarea, xlab = "x (m)", ylab = "y (m)", las = 1) but it doesn't change the labels? Mayby some function in library(spatstat) support las? Thanks! Sincerely, Tord
2008 Feb 17
1
random location in polygons sp spsample splancs csr
Dear all, I had to place points at random, one in each of larger number of polygons (actually in objects of class 'SpatialPolygonsDataFrame' , see sp library), and tried first to do it using spsample (from sp). Surprisingly, every 5-15 trials, the output was a NULL value. The doc says that ' this may occur when trying to hit a small and awkwardly shaped polygon in a large
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")
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
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
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
2006 Feb 26
2
how to change my data to "point data set" in package "SPLANCE"?
Hi! I want to use the package "SPLANCE" to do Ripley's K analysis I have a basic question about the package. I try to find how to do it, but I cannot. I hope you can help me. I donot know how to change my data form to "point data set". my data form is: > qumo[1:5,] code species dbh x y tag status branch 223 10312 QUMO 54.5 7.83 44.80 10306 alive