![](/img/trans.png)
[英]Error in RShiny UI.r: argument “variable” is missing, with no default
[英]argument “variable” is missing, with no default
当尝试在car
包装中使用crPlot()
函数时,我遇到了此错误:
m1 <- lm(socst ~ read+write, data=hsb2)
crPlot(m1)
crPlot.lm(m1)中的错误:参数“变量”丢失,没有默认值
同样的错误发生在avPlot()
。
从文档中:
lm crPlot(模型,变量,id = FALSE,order = 1,line = TRUE,smooth = TRUE,col = carPalette()[1],col.lines = carPalette()[-1],xlab,ylab的S3方法,pch = 1,lwd = 2,grid = TRUE,...)
variable:带引号的字符串,给出水平轴的变量名称。
另外,通常应使用“ crPlots”,而不是“ crPlot”。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.