问题遇到的现象和发生背景
R语言实战里的示例,本意是通过点的行名称来识别点
问题相关代码,请勿粘贴截图
library(car)
scatterplot(mpg ~ wt | cyl, data=mtcars, lwd=2,
main="Scatter Plot of MPG vs. Weight by # Cylinders",
xlab="Weight of Car (lbs/1000)",
ylab="Miles Per Gallon", id=TRUE,
legend=TRUE, labels=row.names(mtcars),
boxplots="xy")
运行结果及报错内容
关键错误提示是:'label'的值虽然是有了,但'at'的值却不存在