plotting shape deformations in trajectory analyis.

142 views
Skip to first unread message

Jamile de Moura Bubadue

unread,
Mar 17, 2021, 7:10:26 PM3/17/21
to geomorph-...@googlegroups.com
Dear all

I am looking into shape trajectories of the femur from three different families from the terrestrial to arboreal state.

so
fit<-procD.lm(shape~gp*hab,data=fdf,iter=9999)
TA<-trajectory.analysis(fit,groups=gp,traj.pts = hab)

I was wondering if there was any way to use plotRefToTarget from the resulting trajectories, plotting for each group the shape at the tip of the trajectory in one state (red) and then the other (green). This would mean I cannot use shape.predictor into the resulting pca from the trajectory analysis object because then I would get the shape deformations from either PC1 or PC2 rather than a position within the bi-plot. I was looking for a way to do it as in picknplot.shape function (to look at shape deformations at the middle of the plot). Bi-plot attached

Thank you
J

Virus-free. www.avast.com
biplottraj.pdf

Antigoni Kaliontzopoulou

unread,
Mar 18, 2021, 8:02:12 AM3/18/21
to geomorph-...@googlegroups.com
Jamile, 

the shapes at the tips of the trajectories correspond to group means. You can use a combination of coord.subset to divide your groups, then mshape on each group, and then plotRefToTarget to depict the specific shape changes across your vectors.

Hope this helps
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/CAKrTZ2MxqXEWwx2bP0wbhBRGBnfXrLDH%3Du2Mjhiuq6ZaNfzZ9A%40mail.gmail.com.


--

Jamile de Moura Bubadue

unread,
Mar 18, 2021, 8:05:13 AM3/18/21
to geomorph-...@googlegroups.com
Yes! This makes a lot of sense! Thank you!

Antigoni Kaliontzopoulou

unread,
Mar 18, 2021, 1:05:11 PM3/18/21
to geomorph-...@googlegroups.com
Jamile, I just realised I was not fully clear: obviously, what you see in the trajectory analysis scatterplots is a simplified view, i.e. a projection of group means to the PC1-PC2 space. The solution I´m proposing, would provide a visualization of the "real" (i.e. full-shape) vector between points, which is the one being statistically analysed.

Reply all
Reply to author
Forward
0 new messages