R语言画图一些字母
plot 二维坐标绘图 dotchart 点图 barplot 条形图 hist 直方图 pie 饼图 points 添加点 lines 添加线 text 添加文字 title 添加标题 boxplot 箱线图 ##画图 plot(x~y,xlab="",ylab="",main="",xlim=c(0,45),ylim=c(0,45),pch=18,col=2,cex=5) #xlab/ylab,xy标题 #main,主标题 #xlim,ylim,xy线段范围 #pch,点的类型(圆形、棱形等) #col,线条的颜色 #cex,点的大小 #预先在数据框中分块,2*2分块 par(mfrow=c(2,2),mar=c(3,3,2,1)) par(del) #画好需要关闭 legend(x,y,fill=v,col=v,lty=v, lwd=v,pch=v) 在当前图的特定位置增加图例(legend)。 #legend( , fill=v)填充盒子的颜色 #legend( , col=v)点或者线条的颜色 #legend( , lty=v)线条样式 #legend( , lwd=v)线条宽度 #legend( , pch=v)标识字符(字符向量) 来源: CSDN 作者: babychrislee3 链接: https://blog.csdn.net/babychrislee3