uclahs-cds / package-CancerEvolutionVisualization

Publication Quality Phylogenetic Tree Plots
https://cran.r-project.org/web/packages/CancerEvolutionVisualization/
GNU General Public License v2.0
2 stars 0 forks source link

Account for node size in branch lengths #21

Open dan-knight opened 2 years ago

dan-knight commented 2 years ago
if (!nodes && length.from.node.edge) {
    tree <- adjust.branch.lengths(v,tree,node.radius, scale1);
    }

This does not always calculate accurate lengths for the second length column (when provided). I suspect it has to do with converting back from scaled (by scale1) units.

I removed this functionality temporarily until this is resolved. I also removed the nodes and length.from.node.edge parameters from SRCGrob, as they can be added back in without losing backwards compatibility.