what: a character indicating what is the property of the tree that should be set/updated.Geom_text(data = dend_data$labels, aes(x, y, label = label), Geom_segment(aes(x = x, y = y, xend = xend, yend = yend))+ # 6 2.500000 2.714554 2.500000 1.091092 # Extract data for labelsĭend_data can be used to draw a customized dendrogram using ggplot2: # Plot line segments and add labels Names(dend_data) # "segments" "labels" "leaf_labels" "class" # Extract data for line segments # Extract the data (for rectangular lines)ĭend_data <- dendro_data(dend, type = "rectangle") # Build dendrogram object from hclust results
0 Comments
Leave a Reply. |