我正在尝试摆脱残差图中的 xlab。无法设置 xlab = ""。怎么做?
示例代码:
x<-rnorm(20,2)
y<- x + rnorm(20,1)
fit<- lm(y~x)
plot(fit, which = 1:1)
该图中有两行 xlab:
拟合值
lm(y ~ x)
如何删除 lm(y ~ x)?我尝试设置
fit$call = ""
但没有成功。有什么建议吗?
最佳答案
你可以试试这个
plot(fit, which=1, sub.caption="")
关于删除残差图中的 xlab(fit,which = 1),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29791784/