# NOT RUN {
# }
# NOT RUN {
#--------------
# data.frame
#--------------
# default call on data.frame
visHclust(iris, cutree = 3, colorEdges = "red")
# update some parameters
visHclust(iris, cutree = 3,
tooltipColumns = c(1, 5),
colorGroups = c("red", "blue", "green"))
# no graphics on tooltip
visHclust(iris, cutree = 3,
tooltipColumns = NULL,
main = "Hclust on iris")
# update group / individual nodes
visHclust(iris, cutree = 8) %>%
visGroups(groupname = "group", color ="#00FF00", shape = "square") %>%
visGroups(groupname = "individual", color ="#FF0000")
#--------------
# dist
#--------------
# without adding data & info in tooltip
visHclust(dist(iris[,1:4]), cutree = 3)
# adding data & info in tooltip
visHclust(dist(iris[,1:4]), cutree = 3,
data = iris)
#--------------
# hclust
#--------------
# without adding data & info in tooltip
visHclust(hclust(dist(iris[,1:4])), cutree = 3)
# adding data & info in tooltip
visHclust(hclust(dist(iris[,1:4])), cutree = 3,
data = iris)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab