R語言繪圖篇(二)

1.散點圖 library(base) attach(mtcars) plot(mtcars$wt,mtcars$mpg, main="Basic Scatter plot of MPG vs.Weight", xlab="Car Weight(lbs/100)", ylab="Miles Per Gallon", pch=19) abline(lm(mtc
相關文章
相關標籤/搜索