![](/img/trans.png)
[英]How do I resolve an “unused argument error” in R? What does this error mean?
[英]What does this error message in R mean? And how do I resolve it? Thanks. Error in match(which.row, 1:dim(xy)[2])
我正在尝试使用R包“ aplpack”中的示例绘制面,并收到一条错误消息:
码:
xy = matrix(c(1,2,3,5,6,7,8,45,567,34,87,98,45,56,23), nrow=5, ncol=3)
faces( xy, which.row, fill = FALSE, face.type = 1, nrow.plot, ncol.plot,
scale = TRUE, byrow = FALSE, main, labels, print.info = TRUE,
na.rm = FALSE, ncolors = 20, col.nose = rainbow(ncolors),
col.eyes = rainbow(ncolors, start = 0.6, end = 0.85),
col.hair = terrain.colors(ncolors), col.face = heat.colors(ncolors),
col.lips = rainbow(ncolors, start = 0, end = 0.2),
col.ears = rainbow(ncolors, start = 0, end = 0.2), plot.faces = TRUE)
输出:match(which.row,1:dim(xy)[2])中的错误:找不到对象“ which.row”
谢谢
如果我们正确指定参数,它将起作用
ncolr=20
faces( xy, which.row=1:4, fill = FALSE, face.type = 1,
nrow.plot=3, ncol.plot=2,
scale = TRUE, byrow = FALSE, main='faces', print.info = TRUE,
na.rm = FALSE, ncolors = ncolr, col.nose = rainbow(ncolr),
col.eyes = rainbow(ncolr, start = 0.6, end = 0.85),
col.hair = terrain.colors(ncolr), col.face = heat.colors(ncolr),
col.lips = rainbow(ncolr, start = 0, end = 0.2),
col.ears = rainbow(ncolr, start = 0, end = 0.2), plot.faces = TRUE)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.