Skip to content
Back to formatted view

Raw Message

Message-ID: <20060209195234.79674.qmail@web34505.mail.mud.yahoo.com>
Date: 2006-02-09T19:52:34Z
From: Srinivas Iyyer
Subject: Plotting 27 line plots in one page
In-Reply-To: <43EBDE85.2000108@ozemail.com.au>

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