plot.dendrogram中的挂起参数不起作用(说[“ hang”不是图形参数])]]

问题描述 投票:0回答:1

更新到R版本3.6.1(并更新了所有软件包之后,我再也无法将hang参数与plot.dendrogram结合使用:

data(mtcars)
hc <- hclust(dist(mtcars))
plot(hc) # works as expected

den <- as.dendrogram(hc)
plot(den) # it works
plot(den, hang=0.01) # gives bunch of warnings:
# Warning messages:
# 1: In plot.window(...) : "hang" is not a graphical parameter
# 2: In plot.xy(xy, type, ...) : "hang" is not a graphical parameter
# 3: In axis(side = side, at = at, labels = labels, ...) :
#   "hang" is not a graphical parameter
# 4: In axis(side = side, at = at, labels = labels, ...) :
#   "hang" is not a graphical parameter
# 5: In title(...) : "hang" is not a graphical parameter

有关哪里出什么问题的任何提示?

version
# _                           
# platform       x86_64-w64-mingw32          
# arch           x86_64                      
# os             mingw32                     
# system         x86_64, mingw32             
# status                                     
# major          3                           
# minor          6.1                         
# year           2019                        
# month          07                          
# day            05                          
# svn rev        76782                       
# language       R                           
# version.string R version 3.6.1 (2019-07-05)
# nickname       Action of the Toes 

在我更新到R版本3.6.1(并更新了所有软件包之后,我不再可以将hang参数与plot.dendrogram一起使用:data(mtcars)hc

r dendrogram hclust
1个回答
0
投票

[hang=as.dendogram的自变量,而不是plot.*的自变量

© www.soinside.com 2019 - 2024. All rights reserved.