[R-sig-Geo] spTransform problem

2006-11-15 Thread Duncan Golicher
the other doesn't. The difference between NAD27 and WGS84 in Southern Mexico should be around 200m N and 20m E. But I get points-as.data.frame(NAD27_WGS84(points)) x y 1 0.5857494 -112.2658 2 0.5855395 -112.2768 Thanks for any advice. Duncan Golicher -- Dr Duncan Goliche

Re: [R-sig-Geo] GRASS with R and distances between polygon edges

2006-10-30 Thread Duncan Golicher
hanks for this Dennis. I found morphology in adehabitat does what we needed through erosion or dilation. Good to know that there isn't another simple way that we overlooked. Duncan -- Dr Duncan Golicher Ecologia y Sistematica Terrestre Conservación de la Biodiversidad El Colegio de la F

[R-sig-Geo] GRASS with R and distances between polygon edges

2006-10-30 Thread Duncan Golicher
disjunct polygons in R (forest fragments)? Its easy to use centroids in spdep, but we were interested in the distances between the edges. Duncan -- Dr Duncan Golicher Ecologia y Sistematica Terrestre Conservación de la Biodiversidad El Colegio de la Frontera Sur San Cristobal de Las Casas,

Re: [R-sig-Geo] converting old sp objects

2006-10-27 Thread Duncan Golicher
g R < 2.4.0, I suggest only >upgrading when sensible. > >Roger > > > >>Thanks, >> >>Duncan >> >> >> >> > > > -- Dr Duncan Golicher Ecologia y Sistematica Terrestre Conservación de la Biodiversidad El Colegio de l

[R-sig-Geo] converting old sp objects

2006-10-27 Thread Duncan Golicher
I have quite a number of SpatialGridDataFrame objects that were saved internally under R 2.3.0 and sp0.8-16. Can anyone suggest a quick and easy way to convert them for use with R2.4.0 and sp0.9-2. (I do have ways, but they are all a bit longwinded). Thanks, Duncan -- Dr Duncan Golicher

[R-sig-Geo] adehabitat

2006-10-24 Thread Duncan Golicher
0.9-2 I needed to fix the function spixdf2kasc in order to get sp data into the adehabitat kasc format. The line that reads ka <- as.data.frame(attr([EMAIL PROTECTED], "att")) should be changed to ka <- [EMAIL PROTECTED] >For image manipulation rimage may be useful. >

Re: [R-sig-Geo] gstat error: singular matrix in function

2006-07-27 Thread Duncan Golicher
A simple work around is to just add some random noise to the points with jitter. ?jitter -- Dr Duncan Golicher Ecologia y Sistematica Terrestre Conservación de la Biodiversidad El Colegio de la Frontera Sur San Cristobal de Las Casas, Chiapas, Mexico Email: [EMAIL PROTECTED] Tel: 967 674

[R-sig-Geo] reading from Grass

2006-07-13 Thread Duncan Golicher
uot;e:/",loc="wgs84",mapset="PERMANENT") Error in gmeta() : Bad or no region for current mapset Error in GRASS.connect(TRUE, gisdbase = "e:/", loc = "wgs84", mapset = "PERMANENT") : cannot retrieve window metadata from specificed loca

[R-sig-Geo] spgrass6 with cygwin

2006-07-07 Thread Duncan Golicher
n then use, for example set.cygwinstring("c/cygwin") GRASS.connect(TRUE,gisdbase="c:/cygwin/Duncan",loc="altos",mapset="SCLC") G<-gmeta() d<-rast.get(G,c("dem","slope") but I can't find the equivalent with spgrass6. Thanks for any ad

Re: [R-sig-Geo] drawing order in spplot and Line width in sp maps

2006-07-06 Thread Duncan Golicher
;graphics" "grDevices" "utils" "datasets" >[7] "base" > >other attached packages: > lattice sp >"0.13-8" "0.8-16" > > >This approach is advocated for tweaking trellis plots. > >On Thu, July 6, 2006 17:52

Re: [R-sig-Geo] drawing order in spplot

2006-07-06 Thread Duncan Golicher
ction within spplot. > > Try: > > spplot(municipios, "yourvariable", panel <- function(x,y,...){ > sp.grid(chisgrid) > panel.polygonsplot(x,y,...) > }) > > Regards, Arien > > Duncan Golicher schreef: > >> Many thanks to everyone involved in putting t

[R-sig-Geo] drawing order in spplot

2006-07-04 Thread Duncan Golicher
t we expected or wanted. I couldn't find how to avoid this, apart from the simple solution of .. image(chisgrid,col=terrain.colors(20)) plot(municipios,add=T) instead of spplot.The figures on http://r-spatial.sourceforge.net all appear to have the grid drawn first. Is there a way to rever