Browse code

fixed phylo4d ladderizing

brj1 authored on 21/06/2017 22:19:19
Showing 1 changed files

... ...
@@ -8,6 +8,9 @@ fortify.treedata <- function(model, data, layout="rectangular", yscale="none",
8 8
     model <- set_branch_length(model, branch.length)
9 9
 
10 10
     x <- reorder.phylo(get.tree(model), "postorder")
11
+    if (ladderize == TRUE) {
12
+        x <- ladderize(x, right=right)
13
+    }
11 14
     if (is.null(x$edge.length) || branch.length == "none") {
12 15
         xpos <- getXcoord_no_length(x)
13 16
     } else {