{"id":2013,"date":"2011-12-02T15:18:47","date_gmt":"2011-12-02T20:18:47","guid":{"rendered":"http:\/\/blogs.law.harvard.edu\/kotrc\/?p=2013"},"modified":"2011-12-02T18:44:02","modified_gmt":"2011-12-02T23:44:02","slug":"missed-mislabeling-mistake","status":"publish","type":"post","link":"https:\/\/archive.blogs.harvard.edu\/kotrc\/2011\/12\/02\/missed-mislabeling-mistake\/","title":{"rendered":"Missed Mislabeling Mistake"},"content":{"rendered":"<p>In the process of function-ifying my R script, discovered a disconcerting inconsistency that caused me to go back and work through a lot of code again (esp. the stuff dealing with the d-matrix), fearing that I may have goofed up most of my analyses altogether. However, eventually (!) figured out the bug came from a mistake in assigning row names to the d matrix, and the PCO results, somewhere along the line. This is of course exactly the reason for going through the process of turning this into functions\u2014once the process is tied up in a function, there&#8217;s no accidentally applying the wrong set or order of row or column names to a matrix. Or, at least, it&#8217;ll be consistently wrong&#8230;<\/p>\n<p>I eventually, I think, figured it out. While there were other distractions (another Geobiology meeting I couldn&#8217;t quite get out of\u2014well, it ended up being fairly entertaining, at least), I also made some good headway turning my code into functions. This inspired me to use my new &#8220;plotMS2D()&#8221; function in a loop, to make plots of all (!) character states\u2014I think this will actually be tremendously useful for deciding which characters are responsible for the morphospace, and which are just randomly peppered all over the place. It looks like this:<\/p>\n<p style=\"text-align: center\">\n<p style=\"text-align: center\"><a href=\"http:\/\/blogs.law.harvard.edu\/kotrc\/files\/2011\/12\/All-Characters.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-2017\" src=\"http:\/\/blogs.law.harvard.edu\/kotrc\/files\/2011\/12\/All-Characters-230x300.png\" alt=\"\" width=\"230\" height=\"300\" srcset=\"https:\/\/archive.blogs.harvard.edu\/kotrc\/files\/2011\/12\/All-Characters-230x300.png 230w, https:\/\/archive.blogs.harvard.edu\/kotrc\/files\/2011\/12\/All-Characters-787x1024.png 787w\" sizes=\"auto, (max-width: 230px) 100vw, 230px\" \/><\/a><\/p>\n<p style=\"text-align: left\">\n","protected":false},"excerpt":{"rendered":"<p>In the process of function-ifying my R script, discovered a disconcerting inconsistency that caused me to go back and work through a lot of code again (esp. the stuff dealing with the d-matrix), fearing that I may have goofed up most of my analyses altogether. However, eventually (!) figured out the bug came from a [&hellip;]<\/p>\n","protected":false},"author":2222,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14607,13584],"tags":[16233],"class_list":["post-2013","post","type-post","status-publish","format-standard","hentry","category-research-journal","category-timekeeping","tag-morphospace"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/archive.blogs.harvard.edu\/kotrc\/wp-json\/wp\/v2\/posts\/2013","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/archive.blogs.harvard.edu\/kotrc\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/archive.blogs.harvard.edu\/kotrc\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/archive.blogs.harvard.edu\/kotrc\/wp-json\/wp\/v2\/users\/2222"}],"replies":[{"embeddable":true,"href":"https:\/\/archive.blogs.harvard.edu\/kotrc\/wp-json\/wp\/v2\/comments?post=2013"}],"version-history":[{"count":4,"href":"https:\/\/archive.blogs.harvard.edu\/kotrc\/wp-json\/wp\/v2\/posts\/2013\/revisions"}],"predecessor-version":[{"id":2015,"href":"https:\/\/archive.blogs.harvard.edu\/kotrc\/wp-json\/wp\/v2\/posts\/2013\/revisions\/2015"}],"wp:attachment":[{"href":"https:\/\/archive.blogs.harvard.edu\/kotrc\/wp-json\/wp\/v2\/media?parent=2013"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/archive.blogs.harvard.edu\/kotrc\/wp-json\/wp\/v2\/categories?post=2013"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/archive.blogs.harvard.edu\/kotrc\/wp-json\/wp\/v2\/tags?post=2013"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}