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="
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
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
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"
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:
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
6 matches
Mail list logo