Re: [R-sig-Geo] Help with ENFA in R

2013-04-15 Thread JonathanAronson
Hi there I have been working on this over the weekend. I have managed to make some progress. Now I am trying to run the enfa using this code: enfa(pc, pr, scan=FALSE). I can define pc using my text file of the locality data for my species using this code: pc - dudi.pca(locs, scannf=FALSE).

Re: [R-sig-Geo] Help with ENFA in R

2013-04-15 Thread Alexandre Villers
Hi, Typing ?enfa (after loading adehabitatHS) and searching through the examples that are provided, you should find these lines ## We prepare the data for the ENFA tab - slot(map, data) pr - slot(count.points(locs, map), data)[,1] Maybe you could start with this, i.e. understanding how the

Re: [R-sig-Geo] Help with ENFA in R

2013-04-15 Thread Alexandre Villers
Hi, Typing ?enfa (after loading adehabitatHS) and searching through the examples that are provided, you should find these lines ## We prepare the data for the ENFA tab - slot(map, data) pr - slot(count.points(locs, map), data)[,1] Maybe you could start with this, i.e. understanding how the

[R-sig-Geo] Fwd: RE : Re: R language GIS moving points

2013-04-15 Thread Endri Raco
It is strange that when trying to apply ggmap(al1) + geom_point(data=points,colour=red, size = 4) + + geom_point(data=points2,colour=grey90, size = 1.5) only data=points are shown the other points are all removed On Mon, Apr 15, 2013 at 3:54 AM, jeandaniel.sylvain

[R-sig-Geo] Multiple datasets with coordinates

2013-04-15 Thread Endri Raco
Hi group, Trying to plot with ggplot2 different datasets of coordinats inside the same chart. Till now I can plot ggmap(al1) + geom_point(data=points,colour=red, size = 4) where points are tables lonlat 41.00 19.02 but I need to add other sets of points(tables of coordinates) lon

Re: [R-sig-Geo] Multiple datasets with coordinates

2013-04-15 Thread kevin . morelle
Hi, This worked for me but I only tried with ggplot: 1°) add a colum $type to your differents dataset to discriminate them 2°) join then your datasets in one dataframe (rbind) 3°) then in ggmap use fill=type, so as: ggmap(al1) + geom_point(data=points, aes(size = 4, fill=type)) Hope it works,

Re: [R-sig-Geo] Multiple datasets with coordinates

2013-04-15 Thread Endri Raco
Thanks Kevin, trying your example df-data.frame(type,lon,lat) points-df names(points) - c('lat', 'lon') al1 = get_map(location = c(19.817955, 41.33071), zoom = 14, maptype = 'roadmap') ggmap(al1) + geom_point(data=points, aes(size = 4, fill=type)) I get error : Warning message:Removed 41

Re: [R-sig-Geo] Help with ENFA in R

2013-04-15 Thread JonathanAronson
Hi Alexandre I have looked at the examples already and those in SP package too before I posted my question. When I run this line of code from the example: pr - slot(count.points(locs, join), data)[,1], I get the following error: Error in count.points(locs, join) : w should inherit the class

Re: [R-sig-Geo] Variogram Error

2013-04-15 Thread Edzer Pebesma
Saman, Ben Graeler managed to reproduce the same effect by: library(gstat) data(meuse) coordinates(meuse) - ~x+y obj = gstat(NULL, D1, zinc~1, meuse[1,], set = list(zero_dist = 3)) obj = gstat(obj, D2, zinc~1, meuse[2,]) variogram(obj, cross = ONLY, pseudo = T, boundaries=c(0,100))

[R-sig-Geo] variogram based on Jaccard distance

2013-04-15 Thread Enrico R. Crema
Dear List, This is rather a theoretical question, but I was wondering if someone on the list can help me out. I have a dataset where at each spatial location I have a binary sequence of character presence/absence, so, for example at location A, I might have spatial coordinates xA=2390 and