You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am doing some practice as follows:
It’s also possible to cut the tree at a given height for partitioning the data into multiple
groups as described in the previous chapter: Hierarchical clustering (Chapter 7). In
this case, it’s possible to color branches by groups and to add rectangle around each
group.
When I try to run the code (below):
fviz_dend(hc, k = 4, # Cut in four groups
cex = 0.5, # label size
k_colors = c("#2E9FDF", "#00AFBB", "#E7B800", "#FC4E07"),
color_labels_by_k = TRUE, # color labels by groups
rect = TRUE, # Add rectangle around groups
rect_border = c("#2E9FDF", "#00AFBB", "#E7B800", "#FC4E07"),
rect_fill = TRUE)
It resulted in this error (below):
Error in if (color == "cluster") color <- "default" :
the condition has length > 1
Please can some gives the solution for this issue?
The text was updated successfully, but these errors were encountered:
I am doing some practice as follows:
It’s also possible to cut the tree at a given height for partitioning the data into multiple
groups as described in the previous chapter: Hierarchical clustering (Chapter 7). In
this case, it’s possible to color branches by groups and to add rectangle around each
group.
When I try to run the code (below):
It resulted in this error (below):
Error in if (color == "cluster") color <- "default" :
the condition has length > 1
Please can some gives the solution for this issue?
The text was updated successfully, but these errors were encountered: