Skip to content

Commit

Permalink
use vctrs
Browse files Browse the repository at this point in the history
  • Loading branch information
Yunuuuu committed Dec 16, 2024
1 parent feb6483 commit ba575d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/dendrogram.R
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ dendrogram_data <- function(tree,
# all x coordinate for children nodes --------------------
# used if center is `TRUE`, we'll calculate the center position
# among all children nodes
leaves <- node[.subset2(node, "leaf"), ] # all leaves
leaves <- vec_slice(node, .subset2(node, "leaf")) # all leaves

# x coordinate for current branch: the midpoint
if (center) {
Expand Down

0 comments on commit ba575d5

Please sign in to comment.