[R-sig-eco] using two distance metrices in formula

2009-10-13 Thread Jens Oldeland
Dear R-sig-ecology group, is there a way to use two self-made dissimilarity matrices for the left-hand side (LHS) and right hand side (RHS) in vegan functions such as capscale or adonis? I created those matrices in a GIS using 3D-information therefore I don´t want to simply use distances betwe

Re: [R-sig-eco] using two distance metrices in formula

2009-10-13 Thread Sarah Goslee
Jens, You can make your imported dissimilarities into a dist object quite easily. Say D is your imported dissimilarity data. It needs to be in lower-triangular format (assuming you imported it as a symmetric square matrix). D <- as.matrix(D) D <- D[col(D) < row(D)] attr(D, "Size") <- N # number

Re: [R-sig-eco] using two distance metrices in formula

2009-10-13 Thread Jari Oksanen
On 13/10/2009 17:51, "Sarah Goslee" wrote: > Jens, > > You can make your imported dissimilarities into a dist object quite easily. > > Say D is your imported dissimilarity data. It needs to be in lower-triangular > format (assuming you imported it as a symmetric square matrix). > > D <- as.m

Re: [R-sig-eco] using two distance metrices in formula

2009-10-13 Thread Sarah Goslee
That doesn't make much sense to me. You'd need an entirely different method than capscale. Perhaps what you're looking for is more like multiple regression on distance matrices (implemented in MRM in ecodist)? Lichstein, J. 2007. Multiple regression on distance matrices: A multivariate

Re: [R-sig-eco] using two distance metrices in formula

2009-10-13 Thread Jens Oldeland
Hi again, our distance matrices are 1) genetic distance (Jaccard) and 2) 3D-Euclidean Distance and the question we want to solve is if there is an effect called "Isolation by Distance" (IBD) in our data (genetic and "real"-distances of snails on the island of crete) or not. There was a debate

Re: [R-sig-eco] using two distance metrices in formula

2009-10-13 Thread Jari Oksanen
On 13/10/09 18:44 PM, "Jens Oldeland" wrote: > Hi again, > > our distance matrices are 1) genetic distance (Jaccard) and 2) > 3D-Euclidean Distance and the question we want to solve is if there is > an effect called "Isolation by Distance" (IBD) in our data (genetic and > "real"-distances of

Re: [R-sig-eco] using two distance metrices in formula

2009-10-13 Thread Peter Solymos
Dear All, Perhaps, there is another way of approaching this problem: the Monmonier's maximum-difference barriers algorithm. Monmonier, M. (1973) Maximum-difference barriers: an alternative numerical regionalization method. Geographic Analysis, 3, 245–261. Manni, F., Guerard, E. and Heyer, E. (200

Re: [R-sig-eco] using two distance metrices in formula

2009-10-13 Thread Sarah Goslee
And actually, MRM isn't quite part of the Mantel family, although there are strong mathematical relationships: Goslee, S. 2009. Correlation analysis of dissimilarity matrices. Plant Ecology. Online at: http://www.springerlink.com/content/k4051127l6430nr1/ for subscribing institutions. It isn't a