Apply a Function Over a Ragged Array| x-y绘图
Usagelayout(mat, widths = rep.int(1, ncol(mat)), heights= rep.int(1, nrow(mat)), respect = FALSE)layout.show(n =1)lcm(x)
Arguments | 参数
mat:是矩阵,非0数字代表绘制图形的顺序,相同数字代表占位符;”0”代表空缺,不绘制图形
X:
> layout(matrix(c(1,2,3,0,2,3,0,0,3),nr=3)) matrix有9个元素,具有这样的形式:
[,1] [,2] [,3]
[1,] 1 0 0
[2,] 2 2 0
[3,] 3 3 3
Example | 例子
>layout(matrix(1:6,2,3))#将当前装置分割为2行3列布局[,1][,2][,3][1,]1 3 5[2,]2 4 6layout.show(6)#显示布局编号
网友评论