lion果 发表于 2019-1-21 22:50 
scatterplot函数里 spread和smoother.args两个参数显示不是图形参数 目前用的3.5.2版本r 求教
最新的帮助:
?scatterplotMatrix
## Default S3 method:
scatterplotMatrix(x, smooth = TRUE,
id = FALSE, legend = TRUE, regLine = TRUE,
ellipse = FALSE, var.labels = colnames(x), diagonal = TRUE,
plot.points = TRUE, groups = NULL, by.groups = TRUE,
use = c("complete.obs", "pairwise.complete.obs"), col =
carPalette()[-1], pch = 1:n.groups, cex = par("cex"),
cex.axis = par("cex.axis"), cex.labels = NULL,
cex.main = par("cex.main"), row1attop = TRUE, ...)
在R 语言实战中的8.2 OLS回归中
图8-3的语法是不对了。没有spread=FALSE,smoother.args=list(lty=2)的定义。
可以通过下面的语句实现:
scatterplot(weight
~ height, data = women, smooth=list(spread=FALSE,
lty.smooth=2))
即为上面两个参数包含在smooth参数中。