--
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/d5a73d2b-9dab-4b8c-bedc-959a25314ffb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<procrustes error.png>
--
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.
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/d5a73d2b-9dab-4b8c-bedc-959a25314ffb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Nils,not sure what you mean by "normalizing" PCA results, do you want to center and scale the data? prcomp does not have, as far as I recall a "size" argument as your code suggests...Anyway, if what you want to do is center and scale, yes, you can pass these prcomp arguments directly to plotTangentSpace, as the function uses prcomp under the hood. Caution is needed if you want to visualize the results in terms of shape variation, though, as centering shape data substracts the mean shape configuration from your coordinates. This means that after applying such a centering, your data will "loose" their geometric properties, and deformation grids will look weird. For visualization, you would need to add back the consensus to your pca data.Not sure this is what you meant, though.All the best,Antigoni
On Thu, Sep 7, 2017 at 11:31 AM, Nils V <nilsva...@gmail.com> wrote:
Hi,I'm not the best at R so I'm having a bit of trouble.Is there anyway to normalize the PCA results from plotTangentSpace? Similar to using prcomp(x, size=true). Or is it already normalized?I'm trying to perform a procrustes (using vegan package), comparing two seperate PCA results from prcomp and from plotTangentSpace on the same objects, but due to differences in PCA scale it ends up coming warped (see attached).Any help would be appreciated!Cheers,Nils
--
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-...@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/d5a73d2b-9dab-4b8c-bedc-959a25314ffb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Antigoni Kaliontzopoulou
Assistant Researcher
CIBIO/InBIO, Centro de Investigação em Biodiversidade e Recursos Genéticos
University of Porto
Campus Agrário de Vairão, 4485-661 Vairão
PORTUGAL
http://antigonik.wix.com/akaliontzopoulou
http://cibio.up.pt/people/details/akaliont
http://aphylogenetics.wix.com/phylogenetics
Hi Nils,not sure what you mean by "normalizing" PCA results, do you want to center and scale the data? prcomp does not have, as far as I recall a "size" argument as your code suggests...Anyway, if what you want to do is center and scale, yes, you can pass these prcomp arguments directly to plotTangentSpace, as the function uses prcomp under the hood. Caution is needed if you want to visualize the results in terms of shape variation, though, as centering shape data substracts the mean shape configuration from your coordinates. This means that after applying such a centering, your data will "loose" their geometric properties, and deformation grids will look weird. For visualization, you would need to add back the consensus to your pca data.Not sure this is what you meant, though.All the best,Antigoni
On Thu, Sep 7, 2017 at 11:31 AM, Nils V <nilsva...@gmail.com> wrote:
Hi,I'm not the best at R so I'm having a bit of trouble.Is there anyway to normalize the PCA results from plotTangentSpace? Similar to using prcomp(x, size=true). Or is it already normalized?I'm trying to perform a procrustes (using vegan package), comparing two seperate PCA results from prcomp and from plotTangentSpace on the same objects, but due to differences in PCA scale it ends up coming warped (see attached).Any help would be appreciated!Cheers,Nils
--
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-...@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/d5a73d2b-9dab-4b8c-bedc-959a25314ffb%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-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/f46c339b-73f7-438b-b9d6-71856d681afa%40googlegroups.com.
To respond to your question and follow up on Mike’s comment: the discussion of to standardize or not standardize variables for PCA typically comes up with ecological data or other datasets where individual variables are being treated multivariately. Sometimes, such data contain variables that may be in different units and/or scale. This matters because some variables may have larger variation than others due simply to the fact that they were measured in those different units or scale. In such cases, those variables with excessively large variation due to scaling would then have ‘undue’ influence on the directions of the eigenvectors. This may not be desirable, and so standardization is used. A rather silly example is if one trait is measured in millimeters and the rest in meters. The trait in mm will be expected to have variation 1000 times greater than the other traits simply due to the scale of the values, and would thus ‘pull’ the dominant eigenvector in its direction. This may not be desirable (and in this case also avoidable).
That being said however, standardization should not be thought of as an automatic operation. For instance, some data may be in similar units and scale and still display large variance disparities between traits. In these cases, standardization is actually bad as it obliterates the very variance-covariance patterns one wishes to summarize in the data! As always, thinking is encouraged before applying some operation (standardization in this case).
Now for the case of Procrustes residuals, these are in the same units, and are in appropriate relative scale to one another. So there is no need to standardize these for PCA at all.
Hope this helps,
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
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/360B6958-9DC2-49EA-A57C-7B03A54BF3F6%40gmail.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/geomorph-r-package/MWHPR04MB055992496263FE5BCE5C36CBA2940%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 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.
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/d5a73d2b-9dab-4b8c-bedc-959a25314ffb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Antigoni Kaliontzopoulou
Assistant Researcher
CIBIO/InBIO, Centro de Investigação em Biodiversidade e Recursos Genéticos
University of Porto
Campus Agrário de Vairão, 4485-661 Vairão
PORTUGAL
http://antigonik.wix.com/akaliontzopoulou
http://cibio.up.pt/people/details/akaliont
http://aphylogenetics.wix.com/phylogenetics
--
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-...@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/f46c339b-73f7-438b-b9d6-71856d681afa%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-...@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/360B6958-9DC2-49EA-A57C-7B03A54BF3F6%40gmail.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.
A1 | A 3D array (p x k x n) containing GPA-aligned coordinates for the first block, or a matrix (n x variables) |
A2 | A 3D array (p x k x n) containing GPA-aligned coordinates for the second block, or a matrix (n x variables) |
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/d31fde8a-1762-4ae1-926b-272e02b0242b%40googlegroups.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-...@googlegroups.com.
Visit this group at https://groups.google.com/group/geomorph-r-package.