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

Impossibility to visualize clade_phylm results #194

Open MirkMart opened 1 year ago

MirkMart commented 1 year ago

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)