R语言图形篇(一)

1.使用图形git attach(mtcars) plot(wt,mpg) abline(mpg~wt) title("Regression of MPG on Weight") detach(mtcars) 将图形保存到当前工做目录中名为mygraph.pdf中的PDF文件中: pdf("mygraph.pdf") attach(mtcars) plot(wt,mpg) abline(mpg~w
相关文章
相关标签/搜索