Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Impossibility to visualize clade_phylm results #194

Open
MirkMart opened this issue Sep 17, 2023 · 0 comments
Open

Impossibility to visualize clade_phylm results #194

MirkMart opened this issue Sep 17, 2023 · 0 comments

Comments

@MirkMart
Copy link

Dear developers,

function

clade_phylm
in particular: summary() and sensi_plot()

Problem

After having used the function (there were displayed no errors, data and tips matched and every clade had at least 5 species) I am trying to explore my results but I get the error message:

Error in data.frame(`clade removed` = c, N.species = ce$N.species, estimate = numeric(length(c)),  : 
  gli argomenti implicano un numero differente di righe: 0, 4

This happens both with my personal data and with Primates ones, the example dataset loaded into your package. I can access single pieces of the clade object, but I can not see the summary and I can even plot it

Reproducible example

library(sensiPhy)
library(geiger)
data("primates")
primates_phy=primates$phy
primates_data=primates.data
diff=name.check(primates_phy, primates_data)
primates_phy <- drop.tip(primates_phy, diff$tree_not_data)
primates_clade <- clade_phylm(log(sexMaturity)~log(adultMass),phy=primates_phy, data=primates_data,clade.col="family")
summary(primates_clade)
sensi_plot(primates_clade)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant