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

Bug in y-axis inference #44

Closed dan-knight closed 1 year ago

dan-knight commented 1 year ago

When two branch length columns are provided, the second y-axis isn't always generated (even when the second branch itself is rendered).

Example Input

tree <- data.frame(
    parent = c(NA, 1, 2),
    length1 = c(10, 10, 100),
    length2 = c(1, 1, 0.1)
    );

plot <- SRCGrob(tree);
grid.draw(plot);