visNetwork
visNetwork copied to clipboard
`visHclust()` throws `Error in match.names(clabs, names(xi)) : names do not match previous names` when using reference manual code
Hello,
I tried running the following code in the package reference manual on pg. 39 for function visHclust() :
visHclust(iris, cutree = 3, colorEdges = "red")
And I'm seeing this error:
I also see the same error when I run this code from the reference manual:
visHclust(iris, cutree = 3, tooltipColumns = c(1, 5),
colorGroups = c("red", "blue", "green"), horizontal = TRUE)
The above code snippets work when I add argument tooltipColumns = NULL or tooltipColumns = c(1,2) for example. Can you please provide further detail on this argument? Does tooltipColumns only accept the indices of numeric columns?
Note: I'm running visNetwork version 2.1.2 on R 4.3.2
Thank you for the guidance! Arianna C.