Re: [R] barplot in hexagram layout

2011-09-13 Thread Schatzi
I decided to go with circles instead of rectangles. Thank you for your help. Here is the new code: dev.new(width=2.5, height=3,mar=c(0,0,0,0)) par(mfrow=c(1,1),mar=c(0,0,0,0)) x=c(-1,1,1,-1,-3,-3,5) y=c(1.2,0.6,-.7,-1.3,-.7,0.6,5) plot(0,xlim=c(-4,2),ylim=c(-2,2),type="n",axes=FALSE,xlab="",ylab="

Re: [R] barplot in hexagram layout

2011-09-13 Thread Jim Lemon
On 09/13/2011 03:08 AM, Schatzi wrote: 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("ora

Re: [R] barplot in hexagram layout

2011-09-12 Thread Schatzi
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"), a

Re: [R] barplot in hexagram layout

2011-09-12 Thread Schatzi
Here is the new code. It works just like I wanted. dev.new(width=6, height=6.5,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"

Re: [R] barplot in hexagram layout

2011-09-12 Thread Schatzi
I will try stacking 5 barplots (with 5 bars per plot) and somehow only showing the middle bar for the top and bottom plots and the two end bars for the two middle plots. - In theory, practice and theory are the same. In practice, they are not - Albert Einstein -- View this message in context:

Re: [R] barplot in hexagram layout

2011-09-12 Thread Schatzi
I'm not sure this is the right location (maybe R-devel would be better). - 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-tp3807600p3807608.html Sent from the

[R] barplot in hexagram layout

2011-09-12 Thread Schatzi
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