Skip to content

Commit 55cc62a

Browse files
committed
backwards-compatible patch for tibble 2.0.0 release
1 parent da8ff5b commit 55cc62a

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

R/plotly.R

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -387,14 +387,12 @@ plot_dendro <- function(d, set = "A", xmin = -50, height = 500, width = 500, ...
387387
}
388388

389389
get_xy <- function(node) {
390-
setNames(
391-
tibble::as_tibble(dendextend::get_nodes_xy(node)),
392-
c("x", "y")
393-
)
390+
m <- dendextend::get_nodes_xy(node)
391+
colnames(m) <- c("x", "y")
392+
tibble::as_tibble(m)
394393
}
395394

396395

397-
398396
#' Convert a list to a plotly htmlwidget object
399397
#'
400398
#' @param x a plotly object.

0 commit comments

Comments
 (0)