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

Smart branch length scaling #29

Closed dan-knight closed 2 years ago

dan-knight commented 2 years ago

These changes add internal branch length calculations based on the lengths of branches (scaled to the mean) and the tree depth. The user can then scale the entire branch proportionally with the scale1 and scale2 parameters. For example, scale1 = 0.9 will keep the calculated scale value, but display the branches at 90% size.

The previous functionality was not intuitive in previous versions. The scale values seemed arbitrary, requiring very small values (around 0.05) to create a reasonably sized plot.

Examples

These plots are actual size, only using the calculated scale values (no manual scaling). branching-example linear-example