Is there a way to control the size or the overall spread of the dendrogram when using the dendextend library? I am using the dendextend library in order to color the lables of my dendrogram. When I plot my cluster without using the dendextend library the plot looks decent. I guess the dendextend has different default setting than the regular plot.
library(dendextend)
pdf("Rplots.pdf", height=10, width=12)
par(cex=0.4)
clustering <- hclust(distance,method="ward.D2")
group <- data.frame(cutree(clustering,k=2))
clustering <- as.dendrogram(clustering,hang=0.2)
labels_colors(clustering) <- as.numeric(category)
labels(clustering) <- category
plot(clustering)
### Variable category is defined earlier in the code.