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