R的数据分析(可视化)
1.绘图基础
参数
尺寸、边界和布局
1.par(mfrow=c(行数,列数),mar=c(n1,n2,n3,n4))#mfrow按行顺序拜访图形;mar:边界的宽度
2.layout(布局名,width=,heights=,respect=True/)#更灵活
MyLayout<-matrix(c(1,1,0,2),nrow=2,ncol=2,byrow=TRUE) DrawLayout<-layout(MyLayout,widths=c(1,1),heights=c(1,2),respect=TRUE) layout.show(DrawLayout)
2.数值型单变量分布的可视化