5
如何使直方圖中的X軸與邊緣盒圖匹配?直方圖與R中的邊緣盒圖
data <- rnorm(1000)
nf <- layout(mat = matrix(c(1,2),2,1, byrow=TRUE), height = c(1,3))
layout.show(nf)
par(mar=c(5.1, 4.1, 1.1, 2.1))
boxplot(data, horizontal=TRUE, outline=FALSE)
hist(data)