-------- Original Message --------
Subject:        Re: demarcating groups in morphospace
Date:   Thu, 29 Apr 2010 04:04:15 -0400
From:   Dennis E. Slice <[email protected]>
To:     [email protected]
References:     <[email protected]>



R (http://www.r-project.org) does it fairly easily (for R). You can export R-formatted data from morpheus, or import/export through morpheus, or hand edit it after GPA.

Here is some embarassingly inelegant code I used to compute some rather aesthetic (but I think, now, misleading) ellipsoidal hulls. It assumes you have already performed and saved a principal components analysis on your data, and set up your plot for drawing:

#Loop over groups.
for (i in 0:2) {
 #Compute a hull.
 pcaHull <- ellipsoidhull(pca$scores[(i*17+1):(17*(1+i)),1:2])
 lines(predict(pcaHull))
 points(pca$scores[(i*17+1):(17*(1+i)),1],
        pca$scores[(i*17+1):(17*(1+i)),2],
        pch=pchars[i+1],bg=pcolors[i+1])
}


If I were to redo that figure, I would use the more standard convex hull. Here is the sample code from the R help file:

require(stats)
X <- matrix(rnorm(2000), ncol = 2)
chull(X)
## Not run:
 # Example usage from graphics package
 plot(X, cex = 0.5)
 hpts <- chull(X)
 hpts <- c(hpts, hpts[1])
 lines(X[hpts, ])

## End(Not run)

-dslice

morphmet wrote:


-------- Original Message --------
Subject: demarcating groups in morphospace
Date: Fri, 9 Apr 2010 07:37:00 -0700 (PDT)
From: Kassam Daud <[email protected]>
Reply-To: [email protected]
To: [email protected]

Dear All,

is there any software (most preferably freeware) which one can use to demarcate groups in morphospace either by polygons or circles??

any hint will be highly appreciated.

regards
Kassam
++++++++

Daud KASSAM, Ph.D

Head of Department,
Senior Lecturer in Fish Genetics & Biotechnology,
Aquaculture & Fisheries Science Department,
Bunda College, University of Malawi,
P.O. Box 219,
Lilongwe, MALAWI.

Tel: +265 (0) 999103246







--
Dennis E. Slice
Associate Professor
Dept. of Scientific Computing
Florida State University
Dirac Science Library
Tallahassee, FL 32306-4120
        -
Guest Professor
Department of Anthropology
University of Vienna
        -
Software worth having/learning/using...
Linux (Operating System: Ubuntu, CentOS, openSUSE, etc.)
OpenOffice (Office Suite: http://www.openoffice.org/)
R package (Stats/Graphics environment: http://www.r-project.org/)
Eclipse (Java/C++/etc IDE: http://www.eclipse.org/)
========================================================



--
For now, new message AND replies should be sent to:
[email protected]
/* Replies will be sent to the list. */
For more information visit http://www.morphometrics.org

Reply via email to