0

我在 R 中有这个圆形树状图,我想放大它。我该如何进行?这里是: 点击这里查看树状图

使用了以下代码:

library(dendextend)
library(circlize)

load(file = "hc1.rda")
#out1 <- cutree(hc1, k = 50)
load(file = "out1.rda")

dend <- as.dendrogram(hc1)
dorder <- order.dendrogram(dend)

colrs = colorRampPalette(c("blue", "red"))(50)
#library(colorBrewer)
# modify the dendrogram to have some colors in the branches and labels
dend1 <- color_branches(dend, col=colrs , 
                        clusters=out1)
#plot(dend1)

# plot the radial plot
par(mar = rep(0,4))
   circlize_dendrogram(dend1, labels_track_height = NA, 
                    dend_track_height = .4, labels = FALSE) 
4

1 回答 1

0

已经很晚了,但我尝试了另一种方法来解决这个问题。在导出图像/pdf 时,我更改了尺寸通常是 4 的倍数。我希望它会有所帮助。

于 2019-11-04T10:58:20.557 回答