ggdendro を使用してヒストグラムのサブセクションのみをプロットすることは可能ですか? たとえば、次の例で一番左のクラスターだけをプロットするにはどうすればよいでしょうか。
require(ggplot2)
hc <- hclust(dist(USArrests), "ave")
dhc <- as.dendrogram(hc)
ddata <- dendro_data(dhc, type="rectangle")
ggplot(segment(ddata),labels=rownames(USArrests))+
geom_segment(aes(x=x, y=y, xend=xend, yend=yend))+
theme_dendro()
おまけの質問: 上の例で州のラベルが表示されないのはなぜですか?