First, all specimens should be subjected to a single GPA, not separate ones (as your post implied). Otherwise, the data are in incommensurate rotations in shape space.
Second, finding the mean shape for each group may be accomplished in myriad ways in R. Some are more ‘blunt stick’ approaches while others are more statistically elegant. Some simple examples include using mshape() on each set of aligned specimens, and some sort of loop or tapply function. The more general and elegant approach is to use a linear function of shape ~ groups and extract the means. This is done as:
means <- aggregate(two.d.array(Y.gpa$coords) ~ group, FUN=mean)
where Y.gpa$coords is the GPA-aligned shape data and group is the vector designating to which group each specimen belongs. Here the function two.d.array() is used to turn the 3D array into a 2D matrix. Then, if one wishes to ‘put it back’ into a 3D array, the arrayspecs() function will do this.
Again I note that all of this is described in the geomorph manual, and does not require going in and out of R, which is prone to errors.
Dean
Dr. Dean C. Adams
Professor
Department of Ecology, Evolution, and Organismal Biology
Department of Statistics
Iowa State University
www.public.iastate.edu/~dcadams/
phone: 515-294-3834
--
You received this message because you are subscribed to the Google Groups "geomorph R package" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
geomorph-r-pack...@googlegroups.com.
To post to this group, send email to
geomorph-...@googlegroups.com.
Visit this group at
https://groups.google.com/group/geomorph-r-package.
To view this discussion on the web, visit
https://groups.google.com/d/msgid/geomorph-r-package/d9888a55-fb1a-4259-a728-c4c86761e9c6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to geomorph-r-package+unsub...@googlegroups.com.
To post to this group, send email to geomorph...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/geomorph-r-package/MWHPR04MB05591C0EF4602B349B88779DA2B90%40MWHPR04MB0559.namprd04.prod.outlook.com.
To unsubscribe from this group and stop receiving emails from it, send an email to geomorph-r-package+unsub...@googlegroups.com.
To post to this group, send email to geomorph-r-package@googlegroups.com.
Visit this group at https://groups.google.com/group/geomorph-r-package.
To view this discussion on the web, visit https://groups.google.com/d/msgid/geomorph-r-package/d9888a55-fb1a-4259-a728-c4c86761e9c6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "geomorph R package" group.
To unsubscribe from this group and stop receiving emails from it, send an email to geomorph-r-package+unsub...@googlegroups.com.
To post to this group, send email to geomorph-r-package@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to geomorph-r-pack...@googlegroups.com.
To post to this group, send email to geomorph-...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/geomorph-r-package/cc49b4a8-9aa9-4580-b744-fcf56f1c1624%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to geomorph-r-package+unsubscribe@googlegroups.com.
To post to this group, send email to geomorph...@googlegroups.com.
Visit this group at https://groups.google.com/group/geomorph-r-package.
To view this discussion on the web, visit https://groups.google.com/d/msgid/geomorph-r-package/d9888a55-fb1a-4259-a728-c4c86761e9c6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "geomorph R package" group.
To unsubscribe from this group and stop receiving emails from it, send an email to geomorph-r-package+unsub...@googlegroups.com.
To post to this group, send email to geomorph-r-package@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to geomorph-r-package+unsubscribe@googlegroups.com.
To post to this group, send email to geomorph...@googlegroups.com.
Visit this group at https://groups.google.com/group/geomorph-r-package.
To view this discussion on the web, visit https://groups.google.com/d/msgid/geomorph-r-package/d9888a55-fb1a-4259-a728-c4c86761e9c6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "geomorph R package" group.
To unsubscribe from this group and stop receiving emails from it, send an email to geomorph-r-package+unsub...@googlegroups.com.
To post to this group, send email to geomorph-r-package@googlegroups.com.
The function compare.multi.evol.rates() is used to compare the rate of one multi-dimensional trait against another multi-dimensional trait (or more of them). Thus, one either has multiple traits to compare “the rate of evolution in arm variation versus leg variation” or one compares the rates of evolution in subsets of landmarks from within the same shape or landmark configuration.
The example was for a case of the latter. Here, the entire head was a shape, and the groups of landmarks designated two components: the cranium and the mandible, for which rates were quantified and compared. Mike’s comment on cords.subset() function was for how to deal with means for such traits if these are desired: which they would be in your case since you have multiple individuals per species and thus require the mean for each species for the subsequent rate analysis.
Alternatively, if one had two different shape components (e.g., heads and arms), these would be aligned separately, the means for each species found separately, and then the rate comparison would be performed.
To unsubscribe from this group and stop receiving emails from it, send an email to geomorph-r-pack...@googlegroups.com.
To post to this group, send email to geomorph...@googlegroups.com.
Visit this group at https://groups.google.com/group/geomorph-r-package.
To view this discussion on the web, visit https://groups.google.com/d/msgid/geomorph-r-package/d9888a55-fb1a-4259-a728-c4c86761e9c6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "geomorph R package" group.
To unsubscribe from this group and stop receiving emails from it, send an email to geomorph-r-pack...@googlegroups.com.
To post to this group, send email to geomorph-...@googlegroups.com.
Visit this group at https://groups.google.com/group/geomorph-r-package.
To view this discussion on the web, visit https://groups.google.com/d/msgid/geomorph-r-package/cc49b4a8-9aa9-4580-b744-fcf56f1c1624%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "geomorph R package" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
geomorph-r-pack...@googlegroups.com.
To post to this group, send email to
geomorph-...@googlegroups.com.
Visit this group at
https://groups.google.com/group/geomorph-r-package.
To view this discussion on the web, visit https://groups.google.com/d/msgid/geomorph-r-package/CAPyCoZykZuVpFLaa6NSoHTU2xMYRnNXGboFmc_%2BYMZgE6V8hig%40mail.gmail.com.
Derek A. Woller, Ph.D. Candidate
Song Laboratory of Insect Systematics and Evolution, Texas A&M University
http://schistocerca.org/SongLab/
Entomologist, Rangeland Grasshopper and Mormon Cricket Management Team,
USDA: APHIS, PPQ, CPHST - Phoenix Lab
3645 East Wier Ave., Phoenix, AZ, 85040
Office: 602-431-3246
Cell: 480-490-6454
Fax: 602-431-3258
https://www.aphis.usda.gov/aphis/ourfocus/planthealth/ppq-program-overview/cphst/ct_dspmsl
http://www.aphis.usda.gov/plant-health/grasshopper
Proud to be an explorer of the final biological frontier: entomology.