Hi Christy, you could use the function fixLMmirror() embedded in the Morpho R package.
Here an example: library(Morpho) ?fixLMmirror #create dataset mat<-matrix(NA,ncol=2,nrow=10) #first 4 landmarks along the midplane mat[1:4,]<-rbind(c(3.01,2),c(3.0,2.1),c(2.99,2.3),c(2.99,2.5)) #three landmarks on the left side mat[5:7,]<-rbind(c(2,2),c(2.5,3),c(2.5,1.5)) #three missing landmarks on the right side plot(NA,xlim=c(1,6),ylim=c(1,4)) points(mat) #define left landmarks left<-c(5:7) #define right landmarks right<-c(8:10) pairedLM<-cbind(left,right) #in this case, the missing landmarks are 8, 9, 10 onesidefixed <- fixLMmirror(mat,pairedLM) points(onesidefixed[right,],col="red") Best, Antonio 2018-08-24 6:31 GMT+02:00 Christy Hipsley <chips...@unimelb.edu.au>: > Dear all, > > I'm working with a 2D landmark data set of vertebrae in anterior view in > which one side (right) has been landmarked, with 5 landmarks along the > midplane axis for a total of 12 points. > > I would like to generate a mirror reflection of the paired landmarks, and > wonder if there is an easy way to do this. I naively tried multiplying the > x coordinate dimensions *-1 and keeping y the same, but since the midplane > x coordinates are not at 0 this obviously doesn't work. > > Any advice or code would be greatly appreciated! > > Thanks, > Christy > > -- > MORPHMET may be accessed via its webpage at http://www.morphometrics.org > --- > You received this message because you are subscribed to the Google Groups > "MORPHMET" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to morphmet+unsubscr...@morphometrics.org. > -- ______________________________________ Antonio Profico PhD Department of Environmental Biology – Dipartimento di Biologia Ambientale SAPIENZA Università di Roma Lab. 06 4991 2690 Mob. 3293440766 -- MORPHMET may be accessed via its webpage at http://www.morphometrics.org --- You received this message because you are subscribed to the Google Groups "MORPHMET" group. To unsubscribe from this group and stop receiving emails from it, send an email to morphmet+unsubscr...@morphometrics.org.