paternogbc / sensiPhy

R package to perform sensitivity analysis for comparative methods
http://onlinelibrary.wiley.com/doi/10.1111/2041-210X.12990/full
GNU General Public License v2.0
12 stars 4 forks source link

tree_Discrete improvements #162

Closed caterinap closed 6 years ago

caterinap commented 6 years ago

Hey guys, I've been testing tree_Discrete. It works nicely! Just some thoughts for small improvements:

gijsbertwerner commented 6 years ago

Cool thanks Caterina! I have now done all of these things, and pushed back on Github. Great suggestions! I have also changed substantially so that now prints in the same style as tree_physig, for unity of style across!

gijsbertwerner commented 6 years ago

The way I have currently set up tree_Discrete (and will set up the other xxx_Discretes) is that there is no match_dataphy call. The reason for this is the different way in which Geiger/fitDiscrete wants the data compared to phylolm (i.e. as a named vector, rather than a data frame). We could either update match_dataphy to also process this, or write a new specific function for this purpose, but let's not for now. Would be nicer and more consistent if we did so here too, but if people wrongly feed the data, the fitDiscrete call will throw its standard error anyway, so not doing this is sufficient for now, I think.

paternogbc commented 6 years ago

Very nice Gijsbert! I agree with this approach. Also people might find it easier if the data input follows the same style of the original function on Geiger.

On Tue, 21 Nov 2017 at 22:25 Gijsbert Werner notifications@github.com wrote:

The way I have currently set up tree_Discrete (and will set up the other xxx_Discretes) is that there is no match_dataphy call. The reason for this is the different way in which Geiger/fitDiscrete wants the data compared to phylolm (i.e. as a named vector, rather than a data frame). We could either update match_dataphy to also process this, or write a new specific function for this purpose, but let's not for now. Would be nicer and more consistent if we did so here too, but if people wrongly feed the data, the fitDiscrete call will throw its standard error anyway, so not doing this is sufficient for now, I think.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/paternogbc/sensiPhy/issues/162#issuecomment-345998026, or mute the thread https://github.com/notifications/unsubscribe-auth/AJMWObd4JU0z1BkWre0VJyFtz3vjAVJmks5s4rMogaJpZM4Qdy1N .

--

Gustavo Brant Paterno Doutorando em Ecologia Departamento de Ecologia Universidade Federal do Rio Grande do Norte

email : paternogbc@gmail.com Google Citations: https://scholar.google.com/citations?user=uNxyHMkAAAAJ&hl=pt-BR https://scholar.google.com/citations?user=uNxyHMkAAAAJ&hl=pt-BR Research Gate: https://www.researchgate.net/profile/Gustavo_Paterno2 https://www.researchgate.net/profile/Gustavo_Paterno2 Github: https://github.com/paternogbc Blog : www.Raprendiz.wordpress.com Skype : gustavopaterno Lattes: http://lattes.cnpq.br/3661227833522004

gijsbertwerner commented 6 years ago

This is now all done, plotting works nicely and I think the tree_discrete/continuous functions are pretty much done :-)