How to draw segment line in Thin plate spline grid

I would like to draw segment line between two point in 2d thin plate spline grid.
When I use segment function it doesn't match the actual point in grid.

  plotRefToTarget(PCA$shapes$shapes.comp1$min,msh,outline = PCA$shapes$shapes.comp1$min)
for(j in 1:9){
    segments(x0 = PCA$shapes$shapes.comp1$min[j],y0=PCA$shapes$shapes.comp1$min[j+9],x1=PCA$shapes$shapes.comp1$min[j%%9+1],y1=PCA$shapes$shapes.comp1$min[j%%9+10])

I know that the code in for loop is not working correctly, but I don't know what function or parameter should I use.
**sorry for my english

I found the solution: define.links: Define links between landmarks in geomorph: Geometric Morphometric Analyses of 2D/3D Landmark Data

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.