Re: [R-sig-Geo] Re : Ecological Niche Factor Analysis

2014-05-30 Thread alannie
Oh, on that last part with the conversion, I actually used coordsp<-SpatialPoints(corysp, proj4string=CRS"+proj=longlat +datum=WGS84")) , bbox = NULL) Sorry for that mistake. Either way, it does not work. > Thanks Mathieu! > > This has gone very well so far, but I cannot seem to get the XY loca

Re: [R-sig-Geo] Re : Ecological Niche Factor Analysis

2014-05-30 Thread alannie
Thanks Mathieu! This has gone very well so far, but I cannot seem to get the XY location data and the bioclim maps in the same proj4string. CODE: pr <- slot(count.points(corysp, bio), "data")[,1] Error in count.points(corysp, bio) : different proj4string in w and xy This seems strange since ever

[R-sig-Geo] Average home range across animals

2014-05-30 Thread user2602640
Hello list, I'm trying to estimate average home range across animals per season. I use here a subset of my data, 3 individuals, 7 relocations each, tracked across 3 seasons (actual dataset is ~ 100K, ~30 animals). Not all fish are present in all seasons, and their locations differ between seasons.

[R-sig-Geo] Adding smoothing factor to terrain function in raster

2014-05-30 Thread Alex Zvoleff
Dear list (and Robert Hijmans in particular), I am using the terrain function in the raster package to calculate slope and aspect prior to performing topographic correction. The landsat package supports applying a smoothing factor during the slope calculation, to avoid over-correction of reflecta

Re: [R-sig-Geo] raster stack/brick cor.test p-values

2014-05-30 Thread Hakim Abdi
Thanks for pointing that out, Pascal. By the way, if anyone wants sample data to try out these codes, I have them here: Brick 1: https://www.dropbox.com/s/bzgz2w7ao8kld27/pet.zip Brick 2: https://www.dropbox.com/s/jyuc0u0pt3bozn4/rain.zip I tried to convert the data into a numeric vector: cor.p