dendextend icon indicating copy to clipboard operation
dendextend copied to clipboard

`rect.dendrogram` text labels misplacement with horiz = TRUE

Open aravind-j opened this issue 10 years ago • 3 comments

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))

aravind-j avatar Apr 30 '16 04:04 aravind-j

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

oriolarques avatar Jun 10 '21 13:06 oriolarques