How to add "label" and "groups" when using the plot.gm.prcomp function

478 views
Skip to first unread message

Charles Zhang

unread,
May 17, 2021, 10:12:39 PM5/17/21
to geomorph R package
Dear all,

For the original plotTangentSpace function, one can easily add labels and groups to specimens by doing plotTangentSpace (x, label = label1, groups = group1).

For the updated plot.gm.prcomp function, is there any way to do the same thing? I found there is no argument within this function to do it directly.

Thank you very much!

Best,
Chi Zhang

Antigoni Kaliontzopoulou

unread,
May 18, 2021, 2:40:43 AM5/18/21
to geomorph-...@googlegroups.com
Chi Zhang,

PCA tools for GM data are now included in the gm.prcomp function of geomorph. By plotting a gm.prcomp object you have available to you all arguments and tools of the R-base plot function.

Please see examples in vignette("geomorph.PCA") and in the help file of gm.prcomp.

Antigoni

--
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/07c5aa80-3b1a-4fce-a952-06e2a32720dfn%40googlegroups.com.


--

Chi Zhang

unread,
May 18, 2021, 2:44:50 AM5/18/21
to geomorph-...@googlegroups.com
Hi Antigoni,

Got it! Thank you for your reply!

Chi

Reply all
Reply to author
Forward
0 new messages