R hclust图中的ylim

R hclust图中的ylim,r,plot,dendrogram,R,Plot,Dendrogram,我有这个简单的代码来绘制树状图,但是功能ylim似乎不起作用。因此,无论我将其设置为什么,绘制时它的y范围都是[0,0.5] 绘制树状图时,是否应使用另一个参数设置ylim plot(hclust(total_dist),main=NULL,ylab=NULL,ylim=c(0,1)) 您可以将用作树状图: hc <- hclust(dist(USArrests)/200, "ave") plot(hc) plot(hc, ylim = c(0,1)) # negative case

我有这个简单的代码来绘制树状图,但是功能
ylim
似乎不起作用。因此,无论我将其设置为什么,绘制时它的y范围都是[0,0.5]

绘制树状图时,是否应使用另一个参数设置ylim

plot(hclust(total_dist),main=NULL,ylab=NULL,ylim=c(0,1))

您可以将
用作树状图

hc <- hclust(dist(USArrests)/200, "ave")
plot(hc)
plot(hc, ylim = c(0,1))  # negative case
plot(as.dendrogram(hc))
plot(as.dendrogram(hc), ylim = c(0,1))  # positive case

hc
plot
是基
R
不是
ggplot2
。查看
?plot.hclust
了解更多信息我找不到与y轴在?plot.hclust中介于0和1之间有关的内容