# Read tps fileland <- readland.tps("ShapeTPS.tps", specID = "ID")
# Generalized Procrustes analysis without sliders
gpa <- gpagen(land,PrinAxes=FALSE, print.progress = FALSE)# Define sliderssliders = rbind(define.sliders(1:27), define.sliders(27:52))
# Generalized procrustes analysis considering semilandmarksgpa <- gpagen(land,PrinAxes=FALSE, print.progress = FALSE, curves = sliders)> head(sliders) before slide after[1,] 1 2 3[2,] 2 3 4[3,] 3 4 5[4,] 4 5 6[5,] 5 6 7[6,] 6 7 8
The problem is somewhere in your landmark data, not your sliders designation. I confirmed this by generating random landmark data and applying your approach:
land<-matrix(rnorm(52*2*56),ncol=2)
land<-arrayspecs(land,p=52,k=2)
With this, gpagen with sliders runs without error.
I suggest you look closely at your original landmarks, specimen by specimen. In a very quick glance of this I noticed that there are many repeat X-values for coordinates. A bit odd. Also, in some specimens the corresponding Y-values are ‘out of order’ implying that the sliding might try to move things ‘past’ one another in the scheme you have devised.
Dean
Dr. Dean C. Adams
Professor
Department of Ecology, Evolution, and Organismal Biology
Department of Statistics
Iowa State University
www.public.iastate.edu/~dcadams/
phone: 515-294-3834
--
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 post to this group, send email to
geomorph-...@googlegroups.com.
Visit this group at
https://groups.google.com/group/geomorph-r-package.
To view this discussion on the web, visit
https://groups.google.com/d/msgid/geomorph-r-package/14560535-4d1b-4d36-835b-a9df3e8e91bb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to geomorph-r-package+unsub...@googlegroups.com.
To post to this group, send email to geomorph...@googlegroups.com.
The problem is definitely with your data and how it was acquired: it is not a problem with gpagen.
After much digging I found at least one problem: specimen 32 has several landmarks which have precisely the same x & y coordinates. Having two landmarks in the same configuration with identical coordinates will cause all sorts of issues computationally: for instance, the tangents for sliding will be undefined, which will cause the numerical analyses based on those tangents to not be completed.
Then one must ask what it means biologically (or in any quantitative context) to have the same coordinates for ‘different’ anatomical landmarks in the same shape configuration. That doesn’t seem to make any conceptual sense either.
Note that there may be other specimens further in the dataset with similar issues; I stopped looking for you once I identified this one.
I suggest you refine your automated landmarking procedure, as it does not appear to be fool-proof.
To unsubscribe from this group and stop receiving emails from it, send an email to geomorph-r-pack...@googlegroups.com.
To post to this group, send email to geomorph...@googlegroups.com.
Visit this group at https://groups.google.com/group/geomorph-r-package.
To view this discussion on the web, visit https://groups.google.com/d/msgid/geomorph-r-package/14560535-4d1b-4d36-835b-a9df3e8e91bb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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 post to this group, send email to
geomorph-...@googlegroups.com.
Visit this group at
https://groups.google.com/group/geomorph-r-package.
To view this discussion on the web, visit https://groups.google.com/d/msgid/geomorph-r-package/9d78d83e-1e99-4adb-848c-57ec5992ce84%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to geomorph-r-package+unsub...@googlegroups.com.
To post to this group, send email to geomorph...@googlegroups.com.
Visit this group at https://groups.google.com/group/geomorph-r-package.
To view this discussion on the web, visit https://groups.google.com/d/msgid/geomorph-r-package/14560535-4d1b-4d36-835b-a9df3e8e91bb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "geomorph R package" group.
To post to this group, send email to geomorph-r-package@googlegroups.com.To unsubscribe from this group and stop receiving emails from it, send an email to geomorph-r-package+unsub...@googlegroups.com.
Visit this group at https://groups.google.com/group/geomorph-r-package.
To view this discussion on the web, visit https://groups.google.com/d/msgid/geomorph-r-package/9d78d83e-1e99-4adb-848c-57ec5992ce84%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "geomorph R package" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/geomorph-r-package/L53wULYgSvg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to geomorph-r-package+unsub...@googlegroups.com.
To post to this group, send email to geomorph-r-package@googlegroups.com.
Visit this group at https://groups.google.com/group/geomorph-r-package.
To view this discussion on the web, visit https://groups.google.com/d/msgid/geomorph-r-package/MWHPR04MB05594B0B8E6C4CAC4F05611BA2660%40MWHPR04MB0559.namprd04.prod.outlook.com.