How to perform a CVA in RStudio

82 views
Skip to first unread message

Raúl Torres Román

unread,
Jun 4, 2024, 6:27:10 AM6/4/24
to geomorph R package
Dear everyone, 
I've just started working with GM. I am trying to make a CVA, but I get this error. My data is fine, as I was able to do a PCA previously without any problems. I would like to know what are the steps to follow because I think I am missing something.
Thank you very much, and best regards.
Raúl

CVACervus <- CVA(Cervusgpa$coords, CervusPopulation, rounds = 10000)
plot(CVACervus, col=ColorsCervus[CervusPopulation], pch=19)
 
singular Covariance matrix: General inverse is used. Threshold for zero eigenvalue is 1e-10 
Error in xy.coords(x, y, xlabel, ylabel, log) :
  'x' is a list, but does not have components 'x' and 'y'

Adams, Dean [EEOB]

unread,
Jun 4, 2024, 10:15:41 AM6/4/24
to geomorph-...@googlegroups.com

Raul,

 

The ‘singular Covariance matrix’ warning (comment actually) is because the GPA-aligned coordinates have redundant dimensions due to translation, rotation, and scale. But things run in Morpho’s ‘CVA’ as intended.

 

The error is in the plotting call. However, as this is a Morpho function and not in geomorph, I cannot advise on that. I suggest you refer to the help files in Morpho for proper use of CVA.

 

Dean

 

Dr. Dean C. Adams

Distinguished Professor of Evolutionary Biology

Department of Ecology, Evolution, and Organismal Biology

Iowa State University

https://faculty.sites.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 view this discussion on the web, visit https://groups.google.com/d/msgid/geomorph-r-package/b5b9c6ec-f870-4ead-8fad-9db5a5e2750cn%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages