set.seed(444)
tree <- rtree(100)
tree1 <- degradeTree(tree,0.5)
#let's compare the input and output
layout(matrix(1:2,,2))
plot(tree,show.tip.label=FALSE,use.edge.length=FALSE)
plot(tree1,show.tip.label=FALSE,use.edge.length=FALSE)
layout(1)
Run the code above in your browser using DataLab