R一页多图:mfrow用法举例
来源:互联网 发布:朱孝远 知乎 编辑:程序博客网 时间:2024/05/28 06:06
http://linux-learning.lofter.com/post/bf795_50bbf7
一页多图,首先设定par(),
例如 par(mfrow=c(2,3)) 一个图版显示2行,3列。
之后按照常规作图就可以了。
如果在原有的图形上添加新的内容,如果用plot(),则可以选 plot(x, add=TRUE)
另外,低水平的绘图函数可以直接在图形上添加元素,如 points(), lines(),等等
via http://bbs.pinggu.org/thread-683838-1-1.html
-----------------------------------------------------
par(mfrow=c(4,2))
x<-seq(1:10)y1<-rnorm(10)
y2<-rnorm(10,mean=2,sd=1)
y3<-rnorm(10,mean=3,sd=1)
y4<-rnorm(10,mean=4,sd=1)
y5<-rnorm(10,mean=5,sd=1)
y6<-rnorm(10,mean=6,sd=1)
y7<-rnorm(10,mean=7,sd=1)
y8<-rnorm(10,mean=8,sd=1)
plot(x,y1,type='o', lty=1, main="I want this title is to be scaled down(resized)", cex.main = 0.3)
plot(x,y2,type='o', lty=2, main="I want this title is to be scaled down(resized)", cex = 0.1)
plot(x,y3,type='o', lty=3, main="I want this title is to be scaled down(resized)", cex.axis = 0.1)
plot(x,y4,type='o', lty=4, main="I want this title is to be scaled down(resized)")
plot(x,y5,type='o', lty=5, main="I want this title is to be scaled down(resized)")
plot(x,y6,type='o', lty=6, main="I want this title is to be scaled down(resized)")
plot(x,y7,type='o', lty=7, main="I want this title is to be scaled down(resized)")
plot(x,y8,type='o', lty=8, main="I want this title is to be scaled down(resized)")
- R一页多图:mfrow用法举例
- ggplot2 一页多图
- ggplot2 一页多图
- 一页多图
- R Graphics Basics: Plot area, mar (margins),oma (outer margin area),mfrow, mfcol (multiple figures)
- R Graphics Basics: Plot area, mar (margins),oma (outer margin area),mfrow, mfcol (multiple figures)
- R语言绘制箱体图举例图文版
- ggplot2 3.0 分面、一页多图
- ggplot2-分面(facet) 一页多图
- UPDATETEXT的举例用法
- asp xmlHttp用法举例
- 按钮属性用法举例
- JavaScript execCommand用法举例
- Fleaphp函数用法举例
- qort用法举例
- BeanUtils用法举例
- java ProgressMonitor 用法举例
- Dialog用法举例
- 如何获取手机屏幕大小
- android学习一:tomcat+eclipse 搭建
- R中设置图形参数--函数par()详解
- 为OpenStack私有云创建Linux和windows映像
- 绘制三角形序列的三种方式 :GL_TRIANGLES、GL_TRIANGLE_STRIP和GL_TRIANGLE_FAN
- R一页多图:mfrow用法举例
- 发生错误unrecognized selector sent to instance的原因
- OpenGL ES 2.0坐标系设定与顶点转换
- linux namespace-之使用
- android学习二:http
- XMPP详解一
- 四大湖
- XMPP详解二
- 李彦宏透露百度真正的护城河