[R] Plotting 27 line plots in one page

Srinivas Iyyer srini_iyyer_bio at yahoo.com
Thu Feb 9 20:52:34 CET 2006


Dear group, 
 I am a novice programmer in R.  I have a list that
has a length of 27 elements. Each element is derived
from table function. 

>lls <- table(drres)

>legnth(lls)
27

I want to plot all these elements in 9x3 plot (9 rows
and 3 columns)
par(9,3)
> mypltfunc <- function(mydata){
+ for (i in 1:27){
+ plot(unlist(mydata[i]))
+ }
+ }

> mypltfunc(lls)
> 

In the graphics window, all 27 figures are drawn in
fraction of sec, one by one and I get to see the last
graph.  It is not drawing into this 9X3 grid. 

Could any one help me please. 

Thanks
sri




More information about the R-help mailing list