Skip to content
Back to formatted view

Raw Message

Message-ID: <b5e1ab9a0911160428x3530257flde81fa5ab9c487bd@mail.gmail.com>
Date: 2009-11-16T12:28:49Z
From: Joris Meys
Subject: Labels in horizontal dendrogram not placed correctly?

Hi all,

I tried plotting a horizontal dendrogram, but it seems as if the
labels are not taken into account in the function plot.dendrogram().

A minimal example :
Test <- data.frame(
    x10000x = c(1:10),
    x20000x = c(2:11),
    x30000x = c(11:2)
)

TestDist <- daisy(data.frame(t(Test)))
TestAgnes <- agnes(TestDist)
plot(as.dendrogram(TestAgnes),horiz=T)

If I run this in R 2.10.0, I get a horizontal dendrogram with the
labels to the far right, and partly outside the plot area. This is
highly inconvenient. Am I doing something wrong or is this a bug?

Kind regards
Joris