op=par(mfrow=c(3,4))
x=c(1:12)
y=2*x+rnorm(12)
plot(x,y,type="p",main="Plot type:p")
plot(x,y,type="l",main="Plot type:l")
plot(x,y,type="b",main="Plot type:b")
plot(x,y,type="c",main="Plot type:c")
plot(x,y,type="o",main="Plot type:o")
plot(x,y,type="h",main="Plot type:h")
plot(x,y,type="s",main="Plot type:s")
plot(x,y,type="S",main="Plot type:S")
plot(x,y,type="n",main="Plot type:n")
title(main="plot作图的九种样式类型",outer=T)#main是主标题,直接用函数title()在作图后添上
par(op)


雷达卡
京公网安备 11010802022788号







