[R] barplot in hexagram layout

Schatzi adele_thompson at cargill.com
Mon Sep 12 16:44:43 CEST 2011


dev.new(width=6, height=1.5,mar=c(0,0,0,0))
par(mfrow=c(1,1),mar=c(.5, .5, 1.5, .5), oma=c(.4, 0,.5, 0))
barplot(c(1,1,1,1,1,1),col=c("blue","purple","red","green","orange","yellow"),
axes = FALSE)

I have a barplot that returns six colors in a line. I would like to get the
same six color blocks in a hexagram layout (if it were a clock, the blocks
would be at 12, 2, 4, 6, 8 and 10 o'clock).

Is this possible with R? I do not know java or c++ to make this with GUI, so
I have been doing it in R instead and it has worked great, except now I need
to change the layout just a bit.

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-tp3807600p3807600.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list