R一般的散点图:plot()
折线图:plot() lines()
柱状图 barplot()
箱子图 boxplot()
直方图:hist()
热力图:heatmap
画地图的:拓展包 maps,sp包
在一张画板上画多个散点图
par(mfrow=c(2,3)) 绘制的2行3列个图形
图例的参数legend
绘制图的一些参数:
背景图:bg=
只设置坐标系内的背景颜色:x<-plot(rnorm(100),type="n")
x<-par("usr"); rect(x[1],x[3],x[2],x[4],col="lightgray")
设置标题,坐标及颜色: 标题:Main= 标题颜色col.Main= col.axis= (x,y轴标题颜色)col.lab=
字体设置 par(family="Serif",front=2)
pch="*"散点图的符号 cex=2