knitr::opts_chunk$set(echo = TRUE)
Of course ! Please distinguish the following cases:
bonhomme.vincent@gmail.com
. If you finish your PhD in 3 weeks and you need me for all the morphometrics inside, I'm afraid all I have to offer is my shoulder :-sTry methods(class="your_class")
, eg methods(class="Opn")
methods("your_function")
, eg `methods("fgProcrustes")
Try ?method
, eg ?coo_center
Try Momocs:::method.class
(no brackets), eg Momocs:::coo_center.default
Yes: MomX.
Because I believe it is the present and the future, provides a very solid and consistent design, fixes most of what I did not like much in R. If you do not like the pipe in particular, just do not use it.
Arrays are fine but list are better. Particularly when the number of coordinates is not homogeneous between shapes which is often the case if you do non landmark-based morphometrics. Also, with arrays you are more or less limited to apply
family; with list
s, the tydy data_frame
s are very close and so is the entire functional programming family brough by purrr
.
Sure. as_df
may help if you want to continue within R. And if you want to exit R, you can save Coe
objects with export
but do not expect my blessing for such dirty ideas.
If you think of tfourier
, rfourier
, npoly
, etc. just because some still use them but I agree they should retire for good (the methods, not the people using them).
See Momit
and if something is not working there, I will fix it and thank you.
.jpg
?See ?import_jpg
. You must have masks of your silhouette, eg an area of black pixels on a white background. It's better if your mask is centered, ie if the center of the image falls within the black area. If you have bizzarre silhouette or errors, check for the black-white frontier, particularly for isolated pixels, connected to the mask by their diagonal. See below (.
for white, *
for `black), the last black pixel on the second line will cause troubles. Any rotational variation of this pixel "diagonally" connected will also cause troubles. You can remove them with "dilation/erosion" of a selection of black pixels within any image editor.
......... ...**.*.. ..****... ...**.... .........
Momecs
+Momit
will fix this but so far you can digitize your landmarks in ImageJ and save then as .txt
coordinates. This must result in pairs of images with .jpg
and .txt
, with exactly matching filenames. Then use tie_jpg_txt
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.