I updated the code as follows: dev.new(width=2.5, height=3,mar=c(0,0,0,0)) par(mfrow=c(5,1),mar=c(.5, .5, 1.5, .5), oma=c(.4, 0,.5, 0)) barplot(c(1,1,1,1,1),col=c("white","white","red","white","white"), axes = FALSE,border=NA) barplot(c(1,1,1,1,1),col=c("orange","white","white","white","yellow"), axes = FALSE,border=NA) barplot(c(1,1,1,1,1),col=c("white","white","white","white","white"), axes = FALSE,border=NA) barplot(c(1,1,1,1,1),col=c("blue","white","white","white","green"), axes = FALSE,border=NA) barplot(c(1,1,1,1,1),col=c("white","white","brown","white","white"), axes = FALSE,border=NA)
I added the middle plot to add a space between the two middle barplots. The problem is that it is a bit too large of a space (they are further apart than the other points). I tried adjusting different options - mar, mgp, omd - of par and the "height" option of barplot and none of them seemed to help. Do you have any ideas of how to make the invisible middle plot a bit shorter or the plots above and below the middle slightly closer? Thank you, Adele ----- In theory, practice and theory are the same. In practice, they are not - Albert Einstein -- View this message in context: http://r.789695.n4.nabble.com/barplot-in-hexagram-layout-tp3807600p3808044.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.