MomX / Momocs

:dove: Morphometrics using R
http://momx.github.io/Momocs/
51 stars 19 forks source link

coo_smooth problem #227

Open alejandraalvarezUU opened 1 year ago

alejandraalvarezUU commented 1 year ago

Hi!

I was trying to remove digitization noise from my data using the command

coo_smooth(data$coo, n)

But is not working, the error that it gives is:

Error in coo_check.default(coo) : do not know how to turn into a coo

I don´t understand why saying that.

Thank you for the help, have a lovely day,

Alejandra.

vbonhomme commented 1 year ago

Hi Alejandra,

if "data" is an Out (or more largely a Coo object), then coo_smooth(data, your_n) would help. Otherwise, try it on a single outline, say coo_smooth(data$coo[[1]], 5)

hope this helps,

v

Le jeu. 9 mars 2023 à 10:39, alejandraalvarezUU @.***> a écrit :

Hi!

I was trying to remove digitization noise from my data using the command

coo_smooth(data$coo, n)

But is not working, the error that it gives is:

Error in coo_check.default(coo) : do not know how to turn into a coo

I don´t understand why saying that.

Thank you for the help, have a lovely day,

Alejandra.

— Reply to this email directly, view it on GitHub https://github.com/MomX/Momocs/issues/227, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABECQFRSMTVJ4F43DWXN4ETW3GQM3ANCNFSM6AAAAAAVU3KFNI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

-- vincentbonhomme.fr http://www.vincentbonhomme.fr cevennette.fr https://www.cevennette.fr 🌱

alejandraalvarezUU commented 1 year ago

Hi!

So it did work, but I don´t understand this part of the code "coo[[1]], 5", so I know it is the coordinate for one of my organisms but which? And does this means that I have to do this for each of my samples? This is my first time using R, so I am not very acquainted with it yet.

Thank you for the help, have a lovely day,

Alejandra.

vbonhomme commented 1 year ago

Le jeu. 9 mars 2023 à 12:23, alejandraalvarezUU @.***> a écrit :

Hi!

So it did work, but I don´t understand this part of the code "coo[[1]], 5",

this means, "acces the 1st outline in $coo (a list component) and do 5 smoothing iteration. See ?coo_smooth for help

so I know it is the coordinate for one of my organisms but which? And does this means that I have to do this for each of my samples?

of course not ;-) that's why you would use coo_smooth(your_Out, number_of_smoothing_iterations) -- see ?coo_smooth

This is my first time using R, so I am not very acquainted with it yet.

that's alright, we have all been there ! have a look to the tutorial : https://github.com/MomX/Momocs/releases/download/v1.4.0/Momocs_intro.html

Thank you for the help, have a lovely day,

Alejandra.

— Reply to this email directly, view it on GitHub https://github.com/MomX/Momocs/issues/227#issuecomment-1461843207, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABECQFVFVIBS7BMFFKVTKP3W3G4UNANCNFSM6AAAAAAVU3KFNI . You are receiving this because you commented.Message ID: @.***>

-- vincentbonhomme.fr http://www.vincentbonhomme.fr cevennette.fr https://www.cevennette.fr 🌱

alejandraalvarezUU commented 1 year ago

Hi!

Thank you very much!!

Have a lovely day,

Alejandra.

alejandraalvarezUU commented 1 year ago

Hi

in your opinion, which is the best number of iterations that can be used or how can I define this?

Thank you, have a lovely day,

Alejandra.

vbonhomme commented 1 year ago

I d Say none ! Juste calibrate tour harmonica retour to sth reasonable Say 95% and et will handle digitization noise anyway ;)

Le jeu. 9 mars 2023 à 16:14, alejandraalvarezUU @.***> a écrit :

Hi

in your opinion, which is the best number of iterations that can be used or how can I define this?

Thank you, have a lovely day,

Alejandra.

— Reply to this email directly, view it on GitHub https://github.com/MomX/Momocs/issues/227#issuecomment-1462227538, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABECQFVTA7IV23LYCDVR27TW3HXUXANCNFSM6AAAAAAVU3KFNI . You are receiving this because you commented.Message ID: @.***>

alejandraalvarezUU commented 1 year ago

Hi!

Ahhh ok, thank you!

Have a lovely day,

Alejandra.