Skip to content

Commit

Permalink
Merge pull request #132 from KlausVigo/master
Browse files Browse the repository at this point in the history
bug fix
  • Loading branch information
emmanuelparadis authored Nov 23, 2024
2 parents 4c0c047 + 383f8f2 commit 0fadfac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/plot.phylo.R
Original file line number Diff line number Diff line change
Expand Up @@ -753,7 +753,7 @@ circular.plot <- function(edge, Ntip, Nnode, xx, yy, theta,
i <- start[k]
j <- end[k]
# make number of segments dependent on the angle
n_segments <- as.integer(2 + (theta[edge[j, 2]] - theta[edge[i, 2]]) / 0.03)
n_segments <- abs(as.integer(2 + abs(theta[edge[j, 2]] - theta[edge[i, 2]]) / 0.03))
X <- rep(r[edge[i, 1]], n_segments)
Y <- seq(theta[edge[i, 2]], theta[edge[j, 2]], length.out = n_segments)
x <- X * cos(Y); y <- X * sin(Y)
Expand Down

0 comments on commit 0fadfac

Please sign in to comment.