[R-sig-eco] PCA for composition data followed by RLQ

Diogo B. Provete dbprovete @end|ng |rom gm@||@com
Mon Feb 21 21:14:41 CET 2022


Dear members,
I'm trying to run an RLQ analysis to test for a covariation between skull
shape (set of eigenvectors) and diet composition for a set of bat species.
The point is, the data for diet is expressed as percentage, with rows
(species) summing to 100. Therefore, it's better treated as compositional
data.

I have already run a compositional PCA in the R package compositions, which
returns an object of the class princomp. However, ade4::rlq only accepts
dudi matrices. I don't know how to convert a princomp to a dudi object or
perhaps run a compositional PCA in ade4. as.dudi seems not to be called
directly by the user.

Does anyone have any clue on how to do this?

Thank you in advance,
Diogo

-- 

Diogo B. Provete, PhD

Assistant Professor

Biodiversity Synthesis lab <http://diogoprovete.weebly.com/>

Biosciences Institute | Federal University of Mato Grosso do Sul | Brazil


Skype: diogoprovete


Director of Graduate studies in Animal Biology
<https://ppgbioanimal.ufms.br/>
__
Biodiversity & Conservation Section Editor at PeerJ
Open Access Journals
peerj.com/diogoprovete  <https://peerj.com/diogoprovete/>

Associate Editor: Austral Ecology
<https://onlinelibrary.wiley.com/page/journal/14429993/homepage/editorialboard.html>
 | Amphibia-Reptilia
<https://brill.com/view/journals/amre/amre-overview.xml> | BMC Ecology and
Evolution | Ecosphere
<https://esajournals.onlinelibrary.wiley.com/hub/journal/21508925/editorial-board/editorial-board>
 | Ecology and Evolution | Frontiers in Ecology and the Environment |
Journal of Biogeography | Journal of Herpetology
<https://journalofherpetology.com/>

	[[alternative HTML version deleted]]



More information about the R-sig-ecology mailing list