plot.dendrogram 中的挂起参数不起作用(说 ["hang" 不是图形参数])
hang parameter in plot.dendrogram doesn't work (saying ["hang" is not a graphical parameter])
在我更新到 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
hang=
是 as.dendogram
的参数,而不是 plot.*
的参数
hc <- hclust(dist(mtcars[1:10,]))
op <- par(mfrow=c(1, 2))
plot(as.dendrogram(hc, hang=.01))
plot(as.dendrogram(hc))
par(op)
在我更新到 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
hang=
是 as.dendogram
的参数,而不是 plot.*
hc <- hclust(dist(mtcars[1:10,]))
op <- par(mfrow=c(1, 2))
plot(as.dendrogram(hc, hang=.01))
plot(as.dendrogram(hc))
par(op)