学习绘图时,有一段代码:
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.method="identify",
legend.plot=TRUE, labels=row.names(mtcars),
boxplots="xy")
这样的结果使得 boxplots="xy"中x和y的箱线图在在x坐标和y坐标的外面(分别在下面和左面),如何把x和y的箱线图弄到坐标轴里面去?