Skip to content

Commit

Permalink
Update simple.tanglegram.R
Browse files Browse the repository at this point in the history
  • Loading branch information
acarafat authored Dec 4, 2024
1 parent 3bd3b55 commit 69134b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/simple.tanglegram.R
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ simple.tanglegram <- function (tree1, tree2, column, value,


if (is.na(l_color)) {
pp <- pp + new_scale_color() + ggplot2::geom_line(aes(x = lab_x, y = y, group = label, color = label), data = conditional_subset, show.legend = FALSE) +
pp <- pp + ggnewscale::new_scale_color() + ggplot2::geom_line(aes(x = lab_x, y = y, group = label, color = label), data = conditional_subset, show.legend = FALSE) +
scale_color_viridis_d(option="turbo") # Use a color scale for discrete colors
} else {
pp <- pp + ggplot2::geom_line(aes(lab_x, y, group=label), data=conditional_subset, color=l_color, show.legend = FALSE)
Expand Down

0 comments on commit 69134b0

Please sign in to comment.