R支持4种图形类型: base graphics, grid graphics, lattice graphics, ggplot2. Base graphics是R的默认图形系统. 一. 基本图形函数plot() plot()命令中的type参数用于明确图形如何绘制,具体type值使用如下: "p" for "points" "l" for "lines" "o" for "overlaid
3.1 使用图形 plot:基础绘图 abline:添加回归直线 hist:绘制直方图 boxplot:绘制箱线图 dev.new():returns the return value of the device opened, usually invisible NULL. dev.cur(): returns a length-one named integer vector giving the number and name of the active device, or 1, the