[R] skip plot/blank plot on purpose (multi-plot question)

Mark Knecht markknecht at gmail.com
Mon Jul 27 20:42:28 CEST 2009


Hi,
   Say that I've got a function that has the following code in it:

X11(width=10, height=10)
layout(rbind(c(1,1,1,2,2,2), c(3,4,5,6,7,8), c(9,10,11,12,13,14)),
height=c(3,1,1))
layout.show(14)

Sometimes when I call this function it will turn out by design that
one or more of the data sets that I use to create the plots in
positions 3-14 are empty. As there is a day of the week relationship
between 3-8 and 9-14, and say that 12 is an empty set, how can I skip
12, leave it blank or make it blank, and then make the next data set
plot in position 13?

1) Is there some generic way to call plot and have it plot, but it
plots nothing so I don't see anything at all in position 12? This
could be a blank plot function I call when I notice the data set is
empty.

2) Is there some generic way to specify the position number I want the
next plot to use so that I'd not plot 12 but would specify 13?

Thanks,
Mark




More information about the R-help mailing list