liamrevell / phytools

GNU General Public License v3.0
207 stars 56 forks source link

Error in if (k <= 0.8 && any(rr > (strwidth("W") * fsize/2))) rr <- rr/max(rr) * #84

Open jmtorresruiz opened 3 years ago

jmtorresruiz commented 3 years ago

Hi,

I am trying to add the info for an extra trait to my phylogenetic tree by using the dotTree function but I get the ERROR shown below. I have tried to fix it by changing my data (trait) but others ERRORS appeared. Any suggestion? Thanks in advance!

trait<-as.matrix(read.csv("C:/Torres-Ruiz/JM/Proyectos-Experim/France/2018_Variation_P50/Analyses/Phylogeny/less spp/P50vsAllHmaxRAIN_Phylogeny2.csv",row.names=1))[,2] trait Rhododendron hirsutum Rhododendron x intermedium Senecio filaginoides Banksia sphaerocarpa -3.230 -1.870 -5.000 -3.700 Mulinum spinosum Rhododendron ferrugineum Rosmarinus officinalis -5.700 -3.010 -9.402 dotTree(myTree,trait) Error in if (k <= 0.8 && any(rr > (strwidth("W") fsize/2))) rr <- rr/max(rr) : missing value where TRUE/FALSE needed