datastorm-open / visNetwork

R package, using vis.js library for network visualization
Other
545 stars 125 forks source link

`visHclust()` throws `Error in match.names(clabs, names(xi)) : names do not match previous names` when using reference manual code #468

Open adcascone opened 6 months ago

adcascone commented 6 months ago

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: image

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.