plottable.net.Rd
This function creates a more plotting-friendly evonet
object to be used with the plot()
function
plottable.net(net, tol = 1e-08)
An object of class evonet
.
a tolerance to account for floating point imprecision. any values smaller than tol
are considered to be zero.
a network to be used with the plot()
function
#' set.seed(17) ##smallest Quartan prime as seed
##Generate a tree with extinct leaves
net<-sim.bdh.age(1,1,5,2,1,c(1/3,1/3,1/3),hyb.inher.fxn = make.uniform.draw(),complete=TRUE)[[1]]
plot(plottable.net(net))
#> Error in phy$tip.label: $ operator is invalid for atomic vectors