Learn R Programming

DALEXtra (version 1.3.2)

plot_group_variables: Plots tree with correlation values

Description

Plots tree that illustrates the results of group_variables function.

Usage

plot_group_variables(
  x,
  p,
  show_labels = TRUE,
  draw_abline = TRUE,
  axis_lab_size = 10,
  text_size = 3
)

Arguments

x

hclust object

p

correlation value for cutoff level

show_labels

if TRUE, plot will have annotated axis Y

draw_abline

if TRUE, cutoff line will be drawn

axis_lab_size

size of labels on axis Y, if applicable

text_size

size of labels annotating values of correlations

Value

tree plot

Examples

Run this code
# NOT RUN {
library("DALEX")
dragons_data <- dragons[,c(2,3,4,7,8)]
group_variables(dragons_data, p = 0.7, clust_method = "complete",
                draw_tree = TRUE)

# }

Run the code above in your browser using DataLab