1、
attach(mtcars)
layout(matrix(c(1,1,2,3), 2, 2, byrow=T))
hist(wt)
hist(mpg)
hist(disp)
detach(mtcars)
2、
attach(mtcars)
layout(matrix(c(1,2,3,3),2,2,byrow = T))
hist(wt)
hist(mpg)
hist(disp)
detach(mtcars)
3、
layout(matrix(c(1,1,2,3),2,2,byrow = F))
plot(1:10)
plot(1:10)
plot(1:10)
4、
layout(matrix(c(1,2,3,3), nrow = 2, ncol = 2,byrow = F))
plot(1:10)
plot(1:10)
plot(1:10)
5、
layout(matrix(c(1,2,3,3,3,3), nrow = 3, ncol = 2, byrow = T))
plot(1:10)
plot(1:10)
plot(1:10)
6、
layout(matrix(c(1,2,3,4,4,4),3,2,byrow = F))
plot(1:10)
plot(1:10)
plot(1:10)
plot(1:10)
7、
layout(matrix(c(1,2,2,3,3,3),3,2,byrow = F))
plot(1:10)
plot(1:10)
plot(1:10)
8、
layout(matrix(c(1,2,3,2,3,4),3,2,byrow = T))
plot(1:10)
plot(1:10)
plot(1:10)
plot(1:10)
9、
attach(mtcars)
layout(matrix(c(1,1,2,3),2,2,byrow = T), widths = c(3,1),heights = c(1,2))
hist(wt)
hist(mpg)
hist(disp)
detach(mtcars)
10、
layout(matrix(c(1,1,2,3),2,2,byrow = F),widths = c(1:3),heights = c(3:1))
plot(1:10)
plot(1:10)
plot(1:10)
11、
layout(matrix(c(1,1,2,3,2,4),3,2,byrow = T), heights = c(1:2,2),
widths = c(1:2) )
plot(1:10)
plot(1:10)
plot(1:10)
plot(1:10)