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
hcplot
是基R
不是ggplot2
。查看?plot.hclust
了解更多信息我找不到与y轴在?plot.hclust中介于0和1之间有关的内容