Skip to content
Prev 314016 / 398506 Next

Plot multiple Graphics via Layers

On 12/21/2012 04:13 AM, Anne-Marie Brigitte Gallrein wrote:
Hi Anne-Marie,
Your illustration didn't come through, but your code did. My guess is 
that you want to do something like this:

layer1 <- apply(X=X[,1:13],
       MARGIN = 2,
       FUN=function(x) {
         barplot(x, horiz=T, xlim=c(-.75,.75), ylim=c(0,10),
         col=c("black","magenta",rep("black",2),
          "dodgerblue",rep("black",4)),
         axes=FALSE, width = .5, space = .5)
         axis(side=1, labels=F)}
       )

Jim