[R] barplot in hexagram layout

Schatzi adele_thompson at cargill.com
Mon Sep 12 19:08:22 CEST 2011


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.



More information about the R-help mailing list