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

Scale bar option #144

Closed whelena closed 2 weeks ago

whelena commented 2 months ago

Add optional param to SRCGrob to use scale bars instead of y-axes.

Screenshot 2024-09-20 at 2 39 33 PM

Using a scale bar allows users to estimate the distance for each edge, even when the edges are not vertical. It may not provide perfect precision, but it avoids the misleading visual representation caused by a y-axis, which can distort the perceived distances between nodes. Additionally, when using 2 edges, this allows us to indicate which edge corresponds to which value (blue vs. dashed black line below) without using figure captions.