dendextend
dendextend copied to clipboard
`rect.dendrogram` text labels misplacement with horiz = TRUE
Position of text labels by the text = argument in rect.dendrogram is on the horizontal axis rather than the vertical axis when horiz = TRUE.
dend15 <- c(1:5) %>% dist %>% hclust(method = "average") %>% as.dendrogram
par(mar=c(5, 5, 5, 5))
dend15 %>% plot(main="dend15")
dend15 %>% rect.dendrogram(k=3,
border = 8, lty = 5, lwd = 2, text = as.roman(1:3))
dend15 %>% plot(main="dend15", horiz = TRUE)
dend15 %>% rect.dendrogram(k=3, horiz = TRUE,
border = 8, lty = 5, lwd = 2, text = as.roman(1:3))
Hi, I have an issue when i use rect.dendrogram() with the text option everything goes fine, however, when I use the option horiz = TRUE text labels do not flip with the dendrogram. Any clues?
Thanks