Plots tree that illustrates the results of cluster_variables function.
# S3 method for cluster_variables plot(x, p = NULL, show_labels = TRUE, axis_lab_size = 10, text_size = 3, ...)
| x |
|
|---|---|
| p | correlation value for cutoff level, if not NULL, cutoff line will be drawn |
| show_labels | if TRUE, plot will have annotated axis Y |
| axis_lab_size | size of labels on axis Y, if applicable |
| text_size | size of labels annotating values of correlations |
| ... | other parameters |
plot
library("DALEX") dragons_data <- dragons[,c(2,3,4,7,8)] cv <- cluster_variables(dragons_data, clust_method = "complete") plot(cv, p = 0.7)