如何从散点图矩阵中删除回归线?
how do I remove regression line from scatterplotMatrix?
我正在尝试从散点图矩阵中删除回归线。我已经试过了,但这不起作用
library(car)
scatterplot.matrix(~mpg+disp+drat+wt|cyl, data=mtcars,
main="Three Cylinder Options", reg.line=F, lwd=0)
如果您查看 scatterplotMatrix
的文档,您会注意到参数 smoother
。将其设置为 NULL
.
scatterplot.matrix(~mpg+disp+drat+wt|cyl, data=mtcars,
main="Three Cylinder Options", reg.line=F, lwd=0, smoother = NULL)
我正在尝试从散点图矩阵中删除回归线。我已经试过了,但这不起作用
library(car)
scatterplot.matrix(~mpg+disp+drat+wt|cyl, data=mtcars,
main="Three Cylinder Options", reg.line=F, lwd=0)
如果您查看 scatterplotMatrix
的文档,您会注意到参数 smoother
。将其设置为 NULL
.
scatterplot.matrix(~mpg+disp+drat+wt|cyl, data=mtcars,
main="Three Cylinder Options", reg.line=F, lwd=0, smoother = NULL)