MomX / Momocs

:dove: Morphometrics using R
http://momx.github.io/Momocs/
51 stars 19 forks source link

Getting shapes from custom PCA coordinates #236

Open aConar opened 2 months ago

aConar commented 2 months ago

Hi everyone,

I am working with a PCA constructed from trajectory analysis using the geomorph package (based on a OutCoe ). I want to replicate this to a Momocs::PCA to reconstruct shapes at custom PCA coordinates. However, when I run Mommocs::PCA(x), I encounter the following error:

Error: ! The x argument of as_tibble() can't be missing as of tibble 3.0.0. Run rlang::last_trace() to see where the error occurred.

It appears that there might be an issue related to the tibble package version. I also tried using the as_PCA function as an alternative, but I received this error instead:

Error: C stack usage 7976916 is too close to the limit

I would appreciate any help or suggestions on how to resolve these issues.

Thank you, Alej

vbonhomme commented 2 months ago

Hi there, you can pass an arbitrary data.frame of positions to pos.shp in plot_PCA Hth V

Le mar. 13 août 2024 à 22:01, Ale @.***> a écrit :

Hi everyone,

I have a PCA morphospace constructed from trajectory analysis using the geomorph package, based on outlines processed with Momocs. I would like to know if it is possible to obtain outlines from custom coordinates in this morphospace.

Thank you in advance,

Alej

— Reply to this email directly, view it on GitHub https://github.com/MomX/Momocs/issues/236, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABECQFUCW2C6DOBAIYR22P3ZRJQ2FAVCNFSM6AAAAABMO6SJ5SVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQ3DIMJSGE2TMMI . You are receiving this because you are subscribed to this thread.Message ID: @.***>