Part of the space between the boxplots is the margin area, you can remove
that. You can also adjust the width of the box within the plot:
layout(matrix(c(1,2,3), 3, 1, byrow = TRUE), heights=c(0.3,0.3,0.6))
op <- par(mar=c(0,4,0,2)+0.1)
boxplot(rnorm(100), horizontal=TRUE, axes=FALSE, width=1)
bo
Dear R users.
I'm new with layout and I can't figure how to teak my graphs.
I have the following code:
layout(matrix(c(1,2,3), 3, 1, byrow = TRUE), heights=c(0.3,0.3,0.6))
boxplot(rnorm(100), horizontal=TRUE, axes=FALSE)
boxplot(rnorm(100), horizontal=TRUE, axes=FALSE)
hist(rnorm(100))
2 matches
Mail list logo